From ae8d410cf51b73f4273cc241dfbc55fe5cf674cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Oelm=C3=BCller?= Date: Tue, 6 Aug 2019 17:10:25 +0200 Subject: [PATCH] add healthz handler --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index 9e39eed..4749783 100644 --- a/main.go +++ b/main.go @@ -177,6 +177,11 @@ func main() { } }) + // health endpoint + mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) { + http.Error(w, http.StatusText(http.StatusOK), http.StatusOK) + }) + server.Handler = mux server.Addr = *listenAddress