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

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