From ea0a14bcf7cdd492fcc6bd9d8cbfd15a65c23e0d Mon Sep 17 00:00:00 2001 From: kandrusyak Date: Thu, 24 Aug 2023 22:40:44 +0300 Subject: [PATCH] fix health route --- main.go | 2 +- mw/jwt.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 2e9d19d..a0031c2 100644 --- a/main.go +++ b/main.go @@ -46,7 +46,7 @@ func main() { // Routes mainGroup.GET("/*", checkAuth) - mainGroup.GET("/health", handler.Health) + e.GET("/health", handler.Health) // Users mainGroup.POST("/auth/login", users.Login) diff --git a/mw/jwt.go b/mw/jwt.go index cccac0c..866383a 100644 --- a/mw/jwt.go +++ b/mw/jwt.go @@ -13,7 +13,7 @@ var JWT_MW = echojwt.WithConfig(echojwt.Config{ SigningKey: []byte(config.Env.Server.JWTSecret), Skipper: func(c echo.Context) bool { // Skip authentication for signup and login requests - if strings.Contains(c.Path(), "auth") || c.Path() == "/api/health" { + if strings.Contains(c.Path(), "auth") || c.Path() == "/health" { return true }