Skip to content
Snippets Groups Projects
Commit 37cd3dfa authored by ale's avatar ale
Browse files

Add simple healthcheck handler

parent 5a3c2e2d
No related branches found
No related tags found
1 merge request!1v2.0
......@@ -42,6 +42,12 @@ func newHTTPHandler(n *Node, icecastPort int, domain string) http.Handler {
Prefix: "static",
})))
// Simple healthcheck handler.
mux.HandleFunc("/healthcheck", func(w http.ResponseWriter, _ *http.Request) {
w.Header().Set("Content-Type", "text/plain")
io.WriteString(w, "OK") //nolint
})
// Serve /debug/ pages using the default HTTP handler
// (packages will automatically register their debug handlers
// there). Using command-line flags it is possible to disable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment