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:
2025-10-12 10:16:52 +05:00
parent 8447dbe882
commit 38bee8e077
5 changed files with 122 additions and 76 deletions
@@ -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)