AGENTS.md: no direct commits to main, all changes via feature branches
This commit is contained in:
@@ -4,9 +4,12 @@ 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, 200)
|
||||
s.respondJSON(w, req, resp, httpStatusOK)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user