modified: begushiybashkir/bbvue/src/views/ProfileEdit.vue

modified:   serv_nginx/api_bb/internal/handlers/auth.go
change path to editProfile for updateProfile handler
This commit is contained in:
2025-10-11 05:17:13 +05:00
parent 7eaddd9f37
commit 62b0d4763d
2 changed files with 2 additions and 2 deletions
@@ -199,7 +199,7 @@ export default {
try { try {
const response = await axios.put( const response = await axios.put(
'https://begushiybashkir.ru/api/v1/auth/profile', 'https://begushiybashkir.ru/api/v1/auth/editProfile',
this.formData, this.formData,
{ {
headers: { headers: {
+1 -1
View File
@@ -42,7 +42,7 @@ func (h *AuthHandler) Routes() chi.Router {
r.Post("/login", h.Login) r.Post("/login", h.Login)
r.Post("/logout", h.Logout) r.Post("/logout", h.Logout)
r.Get("/profile", h.GetProfile) r.Get("/profile", h.GetProfile)
r.Put("/profile", h.UpdateProfile) r.Put("/editProfile", h.UpdateProfile)
return r return r
} }