Fix health check

This commit is contained in:
Søren Rasmussen 2022-07-19 10:38:21 +02:00
parent 2bdf3bafd3
commit 0622341878

View file

@ -31,9 +31,11 @@ func (a *API) HealthCheck(w http.ResponseWriter, r *http.Request) {
default:
w.WriteHeader(http.StatusServiceUnavailable)
w.Write([]byte("Unhealthy"))
return
}
// Respond OK
w.WriteHeader(http.StatusOK)
w.Write([]byte("Healthy"))
}