mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2026-10-14 02:45:26 +02:00
feat: docker healthcheck (#1106)
This commit is contained in:
1 parent
f42de34780
commit
70ba16a6bd
5 files changed
+30
-26
No files matched your search
@@ -18,6 +18,13 @@ func addRoutes() func(*core.ServeEvent) error {
|
||||
return c.Redirect(http.StatusFound, "/ui/")
|
||||
})
|
||||
e.Router.GET("/ui/*", staticFiles())
|
||||
e.Router.GET("/health", func(c echo.Context) error {
|
||||
if _, err := Flags(e.App); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return c.String(http.StatusOK, "OK")
|
||||
})
|
||||
|
||||
e.Router.GET("/api/config", func(c echo.Context) error {
|
||||
flags, err := Flags(e.App)
|
||||
|
||||
Reference in new issue
Block a user