main
1package health
2
3import "net/http"
4
5type Controller struct {
6}
7
8func New() *Controller {
9 return &Controller{}
10}
11
12func (c *Controller) MountTo(mux *http.ServeMux) {
13 mux.HandleFunc("GET /health", c.Index)
14}
15
16func (c *Controller) Index(w http.ResponseWriter, r *http.Request) {
17 w.WriteHeader(http.StatusOK)
18}