diff options
Diffstat (limited to 'pkg/webui/healthz.go')
-rw-r--r-- | pkg/webui/healthz.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/webui/healthz.go b/pkg/webui/healthz.go new file mode 100644 index 0000000..dee51d0 --- /dev/null +++ b/pkg/webui/healthz.go @@ -0,0 +1,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("{}")) + }) +} |