From 41563e925680f167dabef8efe06dbc5e0df12172 Mon Sep 17 00:00:00 2001 From: GnomeZworc Date: Mon, 1 Apr 2024 19:30:18 +0200 Subject: [PATCH] v1.2.0: back: rename health path Signed-off-by: GnomeZworc --- cmd/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 54ec4d7..e075df5 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -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