modified: serv_nginx/api_bb/internal/handlers/user.go
editProfile change method form put to post
This commit is contained in:
@@ -38,7 +38,7 @@ func (h *UserHandler) Routes() chi.Router {
|
|||||||
r.Options("/editProfile", h.handleOptions)
|
r.Options("/editProfile", h.handleOptions)
|
||||||
|
|
||||||
r.Get("/profile", h.GetProfile)
|
r.Get("/profile", h.GetProfile)
|
||||||
r.Put("/editProfile", h.UpdateProfile)
|
r.Post("/editProfile", h.UpdateProfile)
|
||||||
|
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user