v1.2.0: back: use health lib path
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
1f9d3847e0
commit
d31f7d4e0a
1 changed files with 1 additions and 5 deletions
|
|
@ -40,10 +40,6 @@ func isLoggedIn(c echo.Context) error {
|
||||||
return c.NoContent(http.StatusNoContent)
|
return c.NoContent(http.StatusNoContent)
|
||||||
}
|
}
|
||||||
|
|
||||||
func status(c echo.Context) error {
|
|
||||||
return c.NoContent(http.StatusOK)
|
|
||||||
}
|
|
||||||
|
|
||||||
func init_database() {
|
func init_database() {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
|
|
@ -104,7 +100,7 @@ func main() {
|
||||||
e.GET("/", isLoggedIn)
|
e.GET("/", isLoggedIn)
|
||||||
e.POST("/", login)
|
e.POST("/", login)
|
||||||
e.DELETE("/", logout)
|
e.DELETE("/", logout)
|
||||||
e.GET("/health", status)
|
e.GET("/health", health.Health)
|
||||||
e.GET("/swagger/*", echoSwagger.WrapHandler)
|
e.GET("/swagger/*", echoSwagger.WrapHandler)
|
||||||
|
|
||||||
// Start server
|
// Start server
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue