add healthz handler

This commit is contained in:
Christoph Oelmüller 2019-08-06 17:10:25 +02:00
parent 674fbdbc30
commit ae8d410cf5

View File

@ -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