From 1e725dddbc3e261d6c5aaab134dae650ba045a39 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Sat, 11 Oct 2025 10:00:40 +0500 Subject: [PATCH] modified: serv_nginx/api_bb/internal/routes/routes.go chnage rounter and mounts for fix health & check --- serv_nginx/api_bb/internal/routes/routes.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serv_nginx/api_bb/internal/routes/routes.go b/serv_nginx/api_bb/internal/routes/routes.go index b1d586a..1f4d193 100644 --- a/serv_nginx/api_bb/internal/routes/routes.go +++ b/serv_nginx/api_bb/internal/routes/routes.go @@ -35,7 +35,8 @@ func SetupRouter(db *gorm.DB, config *config.Config) http.Handler { userHandler := handlers.NewUserHandler(authService) // Health routes - healthHandler.Routes() + r.Mount("/api", healthHandler.Routes()) + // API v1 routes r.Route("/v1", func(r chi.Router) {