From 24bca7067b02844dc275ed6e22f96f20ab02f82e Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 2 Jan 2025 19:43:53 +0100 Subject: feat(tfstated): bootstrap webui listening on a second port --- pkg/webui/healthz.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pkg/webui/healthz.go (limited to 'pkg/webui/healthz.go') 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("{}")) + }) +} -- cgit v1.2.3