From dabec4a74b32a1ee57ed97653bc031c778e6d7b4 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Wed, 8 Oct 2025 04:04:13 +0500 Subject: [PATCH] modified: internal/routes/routes.go chage rount into api_bb delete dbouble api --- serv_nginx/api_bb/internal/routes/routes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serv_nginx/api_bb/internal/routes/routes.go b/serv_nginx/api_bb/internal/routes/routes.go index 9722434..c98dc34 100644 --- a/serv_nginx/api_bb/internal/routes/routes.go +++ b/serv_nginx/api_bb/internal/routes/routes.go @@ -31,10 +31,10 @@ func SetupRouter(db *gorm.DB) http.Handler { authHandler := handlers.NewAuthHandler(authService) // Health routes - r.Mount("/api", healthHandler.Routes()) + r.Mount("/", healthHandler.Routes()) // API v1 routes - r.Route("/api/v1", func(r chi.Router) { + r.Route("/v1", func(r chi.Router) { // Add the new /check route r.Get("/check", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK)