v1.2.0: back: rename health path

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2024-04-01 19:30:18 +02:00
commit 41563e9256
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632

View file

@ -39,7 +39,7 @@ func isLoggedIn(c echo.Context) error {
return c.NoContent(http.StatusNoContent)
}
func health(c echo.Context) error {
func status(c echo.Context) error {
return c.NoContent(http.StatusOK)
}
@ -109,7 +109,7 @@ func main() {
e.GET("/", isLoggedIn)
e.POST("/", login)
e.DELETE("/", logout)
e.GET("/health", health)
e.GET("/health", status)
e.GET("/swagger/*", echoSwagger.WrapHandler)
// Start server