Some checks failed
continuous-integration/drone/push Build is failing
moving this to use uber/fx di framework instead of the ad hoc di setup before Co-authored-by: sneak <sneak@sneak.berlin> Reviewed-on: #17
13 lines
226 B
Go
13 lines
226 B
Go
package handlers
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func (s *Handlers) HandleHealthCheck() http.HandlerFunc {
|
|
return func(w http.ResponseWriter, req *http.Request) {
|
|
resp := s.hc.Healthcheck()
|
|
s.respondJSON(w, req, resp, 200)
|
|
}
|
|
}
|