modified: internal/routes/routes.go
health rounter from "/" and v1 anather
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user