gohttpserver/internal/handlers/healthcheck.go

13 lines
226 B
Go
Raw Normal View History

2022-11-28 03:59:20 +00:00
package handlers
2020-09-30 06:35:07 +00:00
import (
"net/http"
)
func (s *Handlers) HandleHealthCheck() http.HandlerFunc {
2020-09-30 06:35:07 +00:00
return func(w http.ResponseWriter, req *http.Request) {
resp := s.hc.Healthcheck()
2020-09-30 06:35:07 +00:00
s.respondJSON(w, req, resp, 200)
}
}