modified: main_dc/yalarba/api_yal/internal/router/router.go
change route health_yal to health
This commit is contained in:
@@ -18,7 +18,7 @@ func SetupRouter(db *gorm.DB, config *config.Config) http.Handler {
|
||||
r := chi.NewRouter()
|
||||
|
||||
// Health check
|
||||
r.Get("/health_yal", func(w http.ResponseWriter, r *http.Request) {
|
||||
r.Get("/health", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
json.NewEncoder(w).Encode(map[string]string{"status": "healthy"})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user