health check
This commit is contained in:
@@ -45,6 +45,8 @@ func main() {
|
||||
|
||||
boxes := getBoxes()
|
||||
|
||||
e.GET("/health", healthCheck)
|
||||
|
||||
e.Static("/images", "images")
|
||||
e.Static("/css", "css")
|
||||
|
||||
@@ -58,3 +60,7 @@ func main() {
|
||||
|
||||
defer db.Close()
|
||||
}
|
||||
|
||||
func healthCheck(c echo.Context) error {
|
||||
return c.String(200, "OK")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user