modified: internal/handlers/user.go
modified: internal/models/user.go modified: internal/repository/user_repository.go modified: internal/service/auth_service.go new file: internal/service/user_service.go modified: ../../begushiybashkir/bbvue/src/views/ProfileEdit.vue fix bag not editable profile
This commit is contained in:
@@ -33,10 +33,6 @@ func NewUserHandler(authService service.AuthService) *UserHandler {
|
||||
func (h *UserHandler) Routes() chi.Router {
|
||||
r := chi.NewRouter()
|
||||
|
||||
// Обработка OPTIONS запросов для CORS
|
||||
r.Options("/profile", h.handleOptions)
|
||||
r.Options("/editProfile", h.handleOptions)
|
||||
|
||||
r.Get("/profile", h.GetProfile)
|
||||
r.Post("/editProfile", h.UpdateProfile)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user