From e8704be04803f44744bda9ade40b18f3ec08cf0f Mon Sep 17 00:00:00 2001 From: Vasyl Gello Date: Tue, 23 Jul 2024 12:29:40 +0300 Subject: [PATCH] Expose healthz endpoint Signed-off-by: Vasyl Gello --- src/core/link_ws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/link_ws.go b/src/core/link_ws.go index 57ff6dea..f323b025 100644 --- a/src/core/link_ws.go +++ b/src/core/link_ws.go @@ -52,7 +52,7 @@ func (l *linkWSListener) Close() error { } func (s *wsServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { - if r.URL.Path == "/health" { + if r.URL.Path == "/health" || r.URL.Path == "/healthz" { w.WriteHeader(http.StatusOK) _, _ = w.Write([]byte("OK")) return