modified: serv_nginx/api_bb/internal/routes/routes.go
chnage rounter and mounts for fix health & check
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user