Fix health check
This commit is contained in:
parent
2bdf3bafd3
commit
0622341878
1 changed files with 2 additions and 0 deletions
|
@ -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"))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue