From 62b0d4763d55bc41bc61863930d50ae217256673 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Sat, 11 Oct 2025 05:17:13 +0500 Subject: [PATCH] modified: begushiybashkir/bbvue/src/views/ProfileEdit.vue modified: serv_nginx/api_bb/internal/handlers/auth.go change path to editProfile for updateProfile handler --- begushiybashkir/bbvue/src/views/ProfileEdit.vue | 2 +- serv_nginx/api_bb/internal/handlers/auth.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/begushiybashkir/bbvue/src/views/ProfileEdit.vue b/begushiybashkir/bbvue/src/views/ProfileEdit.vue index 0b7b718..d528228 100644 --- a/begushiybashkir/bbvue/src/views/ProfileEdit.vue +++ b/begushiybashkir/bbvue/src/views/ProfileEdit.vue @@ -199,7 +199,7 @@ export default { try { const response = await axios.put( - 'https://begushiybashkir.ru/api/v1/auth/profile', + 'https://begushiybashkir.ru/api/v1/auth/editProfile', this.formData, { headers: { diff --git a/serv_nginx/api_bb/internal/handlers/auth.go b/serv_nginx/api_bb/internal/handlers/auth.go index c3d1c7f..aa29262 100644 --- a/serv_nginx/api_bb/internal/handlers/auth.go +++ b/serv_nginx/api_bb/internal/handlers/auth.go @@ -42,7 +42,7 @@ func (h *AuthHandler) Routes() chi.Router { r.Post("/login", h.Login) r.Post("/logout", h.Logout) r.Get("/profile", h.GetProfile) - r.Put("/profile", h.UpdateProfile) + r.Put("/editProfile", h.UpdateProfile) return r }