modified: serv_nginx/api_bb/internal/routes/routes.go

change router path rounting
This commit is contained in:
2025-10-16 12:54:40 +05:00
parent 1704ceb91b
commit e1ccf83569
+1 -1
View File
@@ -56,9 +56,9 @@ func SetupRouter(db *gorm.DB, config *config.Config) http.Handler {
r.Use(middleware.AuthMiddleware(jwtService, userRepo))
r.Use(middleware.RequireAuth)
r.Mount("/", allHandler.UserHandler().Routes())
r.Mount("/avatars", allHandler.AvatarHandler().Routes())
r.Mount("/", allHandler.UserHandler().Routes())
// Здесь будут другие защищенные маршруты пользователя
})