diff options
Diffstat (limited to 'app/controllers/health')
| -rw-r--r-- | app/controllers/health/controller.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/health/controller.go b/app/controllers/health/controller.go index e241885..5bcff66 100644 --- a/app/controllers/health/controller.go +++ b/app/controllers/health/controller.go @@ -9,6 +9,10 @@ func New() *Controller { return &Controller{} } +func (c *Controller) MountTo(mux *http.ServeMux) { + mux.HandleFunc("GET /health", c.Index) +} + func (c *Controller) Index(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) } |
