summaryrefslogtreecommitdiff
path: root/cmd/tfstate/healthz.go
blob: 20c72c903ba2b1cb740e44c375ce8ade4b77c24f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package main

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