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:
@@ -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: {
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user