new file: begushiybashkir/bbvue/public/images/locations/1mayPark.webp
new file: begushiybashkir/bbvue/public/images/locations/dinamo.jpg new file: begushiybashkir/bbvue/public/images/locations/riverSide.jpeg modified: begushiybashkir/bbvue/src/views/Training.vue modified: serv_nginx/api_bb/internal/handlers/handler_util.go modified: serv_nginx/api_bb/internal/handlers/user.go modified: serv_nginx/api_bb/internal/routes/routes.go modified: serv_nginx/api_bb/internal/service/auth_service.go modified: serv_nginx/api_bb/internal/service/user_service.go add photo location into trainings page
This commit is contained in:
@@ -32,11 +32,12 @@ func SetupRouter(db *gorm.DB, config *config.Config) http.Handler {
|
||||
// Initialize services with logger
|
||||
jwtService := service.NewJWTService(config.JWTSecret)
|
||||
authService := service.NewAuthService(userRepo, jwtService, baseLogger) // Передаем логгер
|
||||
userService := service.NewUserService(userRepo, jwtService, baseLogger)
|
||||
|
||||
// Initialize handlers
|
||||
healthHandler := handlers.NewHealthHandler()
|
||||
authHandler := handlers.NewAuthHandler(authService, jwtService)
|
||||
userHandler := handlers.NewUserHandler(authService)
|
||||
userHandler := handlers.NewUserHandler(&userService)
|
||||
|
||||
// Health routes
|
||||
r.Mount("/api", healthHandler.Routes())
|
||||
|
||||
Reference in New Issue
Block a user