diff --git a/healthcheck.go b/healthcheck.go index d9d359e..a2efc22 100644 --- a/healthcheck.go +++ b/healthcheck.go @@ -7,7 +7,7 @@ type HealthCheckHandler struct { } // Handle responds with a 200 by default -func (h *HealthCheckHandler) Handle(w http.ResponseWriter, r *http.Request) { +func (h *HealthCheckHandler) Handle(w http.ResponseWriter, _ *http.Request) { w.WriteHeader(http.StatusOK) _, _ = w.Write([]byte("Success")) } diff --git a/router.go b/router.go index ad8795d..7526950 100644 --- a/router.go +++ b/router.go @@ -12,11 +12,11 @@ type RouterConfig struct { // This version returns a mux from the chi project // as a convenience for cases where custom middleware or additional // routes need to be configured. -func NewDefaultRouter(conf *RouterConfig) *chi.Mux { - router := chi.NewMux() +func NewDefaultRouter(_ *RouterConfig) *http.ServeMux { + router := http.NewServeMux() healthCheckHandler := &HealthCheckHandler{} - router.Get("/healthcheck", healthCheckHandler.Handle) + router.HandleFunc("/healthcheck", healthCheckHandler.Handle) return router }