From f33149dea2f5693dc5f80644f772c104ac221bc8 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Sat, 28 Feb 2026 05:41:58 +0500 Subject: [PATCH] modified: main_dc/yalarba/api_yal/internal/router/router.go change route health_yal to health --- main_dc/yalarba/api_yal/internal/router/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_dc/yalarba/api_yal/internal/router/router.go b/main_dc/yalarba/api_yal/internal/router/router.go index 33f2dc9..696c580 100644 --- a/main_dc/yalarba/api_yal/internal/router/router.go +++ b/main_dc/yalarba/api_yal/internal/router/router.go @@ -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"}) })