modified: main_dc/yalarba/api_yal/internal/router/router.go

change route health_yal to health
This commit is contained in:
2026-02-28 05:41:58 +05:00
parent 39470b9707
commit f33149dea2
@@ -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"})
})