modified: internal/routes/routes.go
chage rount into api_bb delete dbouble api
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user