modified: internal/routes/routes.go

health rounter from "/" and v1 anather
This commit is contained in:
2025-10-08 04:15:50 +05:00
parent 8b0de935bc
commit d5e11e992a
+1 -1
View File
@@ -31,7 +31,7 @@ func SetupRouter(db *gorm.DB) http.Handler {
authHandler := handlers.NewAuthHandler(authService) authHandler := handlers.NewAuthHandler(authService)
// Health routes // Health routes
r.Mount("/health", healthHandler.Routes()) r.Mount("/", healthHandler.Routes())
// API v1 routes // API v1 routes
r.Route("/v1", func(r chi.Router) { r.Route("/v1", func(r chi.Router) {