···1010)
11111212// health is a basic health endpoint, callable via monitoring scripts.
1313-// This is a very basic implementation which - if a request reaches it -
1414-// simply returns (204) No Content to the caller.
1313+// This is a very basic implementation which simply returns 204 (No
1414+// Content) to the caller.
1515func (a *app) health(w http.ResponseWriter, r *http.Request) {
1616 // TODO.
1717 w.WriteHeader(http.StatusNoContent)
···2727 var services []models.Service
2828 err := json.NewDecoder(r.Body).Decode(&services)
2929 if err != nil {
3030- // TODO
3130 http.Error(w, err.Error(), http.StatusBadRequest)
3231 return
3332 }
···4948 return
5049 }
51505252- // Write back
5351 w.Header().Set("Content-Type", "application/json")
5452 w.WriteHeader(http.StatusOK)
5553 if err := json.NewEncoder(w).Encode(list); err != nil {