modified: main_dc/yalarba/api_yal/cmd/main.go

modified:   main_dc/yalarba/api_yal/internal/router/router.go
set router
This commit is contained in:
2026-02-25 12:34:32 +05:00
parent 6c0eb6d877
commit 06d3dbd8b7
2 changed files with 6 additions and 8 deletions
@@ -16,7 +16,7 @@ func SetupRouter(db *gorm.DB, config *config.Config) http.Handler {
r := chi.NewRouter()
// Health check
r.Get("/health", func(w http.ResponseWriter, r *http.Request) {
r.Get("/health_yal", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
json.NewEncoder(w).Encode(map[string]string{"status": "healthy"})
})