14 lines
299 B
Go
14 lines
299 B
Go
package handlers
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
// HandleHealthCheck returns a handler for the health check endpoint.
|
|
func (s *Handlers) HandleHealthCheck() http.HandlerFunc {
|
|
return func(w http.ResponseWriter, _ *http.Request) {
|
|
resp := s.hc.Healthcheck()
|
|
s.respondJSON(w, resp, http.StatusOK)
|
|
}
|
|
}
|