Commit 37cd3dfa authored by ale's avatar ale

Add simple healthcheck handler

parent 5a3c2e2d
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment