Skip to content

Commit b5da5df

Browse files
Christoph Oelmüllerzwopir
authored andcommitted
add healthz handler
1 parent 674fbdb commit b5da5df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ func main() {
177177
}
178178
})
179179

180+
// health endpoint
181+
mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
182+
http.Error(w, http.StatusText(http.StatusOK), http.StatusOK)
183+
})
184+
180185
server.Handler = mux
181186
server.Addr = *listenAddress
182187

0 commit comments

Comments
 (0)