add healthcheck route

This commit is contained in:
lbenedar
2026-04-10 18:34:01 +03:00
parent a465e6a657
commit cd204ebcf5
7 changed files with 94 additions and 20 deletions

View File

@@ -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
}