chore: remove health check (#26822)

This commit is contained in:
Michael Geers 2026-01-21 13:42:56 +01:00 • committed by GitHub
parent 1d8c8ba79c
commit 6a9f860cc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 0 additions and 229 deletions

View file

@ -236,20 +236,6 @@ func stateHandler(cache *util.ParamCache) http.HandlerFunc {
}
}
// healthHandler returns current charge mode
func healthHandler(site site.API) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
if site == nil || !site.Healthy() {
w.WriteHeader(http.StatusInternalServerError)
return
}
w.Header().Set("Content-Type", "text/plain")
w.WriteHeader(http.StatusOK)
fmt.Fprintln(w, "OK")
}
}
// tariffHandler returns the configured tariff
func tariffHandler(site site.API) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {