From 7116528ad763d8223b9fadf2d5ea3cc454496db2 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Mon, 9 Dec 2024 15:38:05 +0100 Subject: [PATCH] chore: update health check link --- internal/routes.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/routes.go b/internal/routes.go index 4047b26..0fc73f0 100644 --- a/internal/routes.go +++ b/internal/routes.go @@ -83,11 +83,12 @@ func (gatewayServer GatewayServer) Initialize() *mux.Router { } // Routes health check if !gateway.DisableHealthCheckStatus { - r.HandleFunc("/health/routes", heath.HealthCheckHandler).Methods("GET") + r.HandleFunc("/health/routes", heath.HealthCheckHandler).Methods("GET") // Deprecated + r.HandleFunc("/healthz/routes", heath.HealthCheckHandler).Methods("GET") } // Health check - r.HandleFunc("/health/live", heath.HealthReadyHandler).Methods("GET") + r.HandleFunc("/health/live", heath.HealthReadyHandler).Methods("GET") // Deprecated r.HandleFunc("/readyz", heath.HealthReadyHandler).Methods("GET") r.HandleFunc("/healthz", heath.HealthReadyHandler).Methods("GET") // Enable common exploits