add healthcheck route
This commit is contained in:
@@ -11,6 +11,7 @@ func (app *application) routes() http.Handler {
|
||||
|
||||
router.HandlerFunc(http.MethodGet, "/", app.ShowText)
|
||||
router.HandlerFunc(http.MethodGet, "/v1/when", app.WhenNextSession)
|
||||
router.HandlerFunc(http.MethodGet, "/v1/healthcheck", app.healthcheckHandler)
|
||||
|
||||
return router
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user