feat(tfstated): bootstrap webui listening on a second port

This commit is contained in:
Julien Dessaux 2025-01-02 19:43:53 +01:00
parent 99ff8441da
commit 24bca7067b
Signed by: adyxax
GPG key ID: F92E51B86E07177E
4 changed files with 78 additions and 2 deletions

12
pkg/webui/healthz.go Normal file
View file

@ -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("{}"))
})
}