modified: serv_nginx/serv_golang_rest_api/internal/server/server.go
rest api set rountin with /api/v1
This commit is contained in:
@@ -36,7 +36,7 @@ func (s *Server) configureRouter(db *gorm.DB) {
|
||||
s.router.Get("/health", s.healthCheck)
|
||||
|
||||
// API routes
|
||||
s.router.Route("/v1", func(r chi.Router) {
|
||||
s.router.Route("/api/v1", func(r chi.Router) {
|
||||
s.router.Get("/check", s.healthCheck)
|
||||
s.setupUserRoutes(r, db)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user