1
0

healthcheck endpoint (#998)

Co-authored-by: Igor Rzegocki <igor@rzegocki.pl>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/998
Reviewed-by: konrad <k@knt.li>
Co-authored-by: ajgon <vikunja-gitea@ajgon.ovh>
Co-committed-by: ajgon <vikunja-gitea@ajgon.ovh>
This commit is contained in:
ajgon
2021-10-03 18:37:02 +00:00
committed by konrad
parent cd6cd840a2
commit fb9fa27488
3 changed files with 64 additions and 0 deletions

View File

@ -198,6 +198,9 @@ func RegisterRoutes(e *echo.Echo) {
registerCalDavRoutes(c)
}
// healthcheck
e.GET("/health", HealthcheckHandler)
// CORS_SHIT
if config.CorsEnable.GetBool() {
e.Use(middleware.CORSWithConfig(middleware.CORSConfig{