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

chnage rounter and mounts for fix health & check
This commit is contained in:
2025-10-11 10:00:40 +05:00
parent 68a88ad30c
commit 1e725dddbc
+2 -1
View File
@@ -35,7 +35,8 @@ func SetupRouter(db *gorm.DB, config *config.Config) http.Handler {
userHandler := handlers.NewUserHandler(authService) userHandler := handlers.NewUserHandler(authService)
// Health routes // Health routes
healthHandler.Routes() r.Mount("/api", healthHandler.Routes())
// API v1 routes // API v1 routes
r.Route("/v1", func(r chi.Router) { r.Route("/v1", func(r chi.Router) {