package handlers import ( "net/http" ) const httpStatusOK = 200 // HandleHealthCheck returns an HTTP handler for the health check endpoint. func (s *Handlers) HandleHealthCheck() http.HandlerFunc { return func(w http.ResponseWriter, req *http.Request) { resp := s.hc.Healthcheck() s.respondJSON(w, req, resp, httpStatusOK) } }