summaryrefslogtreecommitdiff
path: root/pkg/webui/healthz.go
blob: dee51d0b97cf571239915f9782b82dd637ff8e02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package webui

import "net/http"

func handleHealthz() http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		w.Header().Set("Cache-Control", "no-store, no-cache")
		w.Header().Set("Content-Type", "application/json")
		w.WriteHeader(http.StatusOK)
		_, _ = w.Write([]byte("{}"))
	})
}