add health endpoint for monitoring
This commit is contained in:
parent
13a7dc542f
commit
368415cde2
@ -38,6 +38,9 @@ func RunServer(config config.Config) (err error) {
|
|||||||
e.Renderer = builtTemplates
|
e.Renderer = builtTemplates
|
||||||
|
|
||||||
e.GET("/", p.Index)
|
e.GET("/", p.Index)
|
||||||
|
e.GET("/health", func(c echo.Context) error {
|
||||||
|
return c.String(http.StatusOK, "OK")
|
||||||
|
})
|
||||||
e.GET("/static/*", func(c echo.Context) error {
|
e.GET("/static/*", func(c echo.Context) error {
|
||||||
return static.GetStatic(&root.Files, c)
|
return static.GetStatic(&root.Files, c)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user