fix health route

This commit is contained in:
kandrusyak
2023-08-24 22:40:44 +03:00
parent 3a59b0896e
commit ea0a14bcf7
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ func main() {
// Routes // Routes
mainGroup.GET("/*", checkAuth) mainGroup.GET("/*", checkAuth)
mainGroup.GET("/health", handler.Health) e.GET("/health", handler.Health)
// Users // Users
mainGroup.POST("/auth/login", users.Login) mainGroup.POST("/auth/login", users.Login)

View File

@@ -13,7 +13,7 @@ var JWT_MW = echojwt.WithConfig(echojwt.Config{
SigningKey: []byte(config.Env.Server.JWTSecret), SigningKey: []byte(config.Env.Server.JWTSecret),
Skipper: func(c echo.Context) bool { Skipper: func(c echo.Context) bool {
// Skip authentication for signup and login requests // 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 return true
} }