modified: internal/routes/routes.go

chage rount into api_bb delete dbouble api
This commit is contained in:
2025-10-08 04:04:13 +05:00
parent 75aac825dd
commit dabec4a74b
+2 -2
View File
@@ -31,10 +31,10 @@ func SetupRouter(db *gorm.DB) http.Handler {
authHandler := handlers.NewAuthHandler(authService) authHandler := handlers.NewAuthHandler(authService)
// Health routes // Health routes
r.Mount("/api", healthHandler.Routes()) r.Mount("/", healthHandler.Routes())
// API v1 routes // API v1 routes
r.Route("/api/v1", func(r chi.Router) { r.Route("/v1", func(r chi.Router) {
// Add the new /check route // Add the new /check route
r.Get("/check", func(w http.ResponseWriter, r *http.Request) { r.Get("/check", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK) w.WriteHeader(http.StatusOK)