This commit is contained in:
JurajKubrican
2025-08-15 13:43:36 +02:00
parent 1546b0d0bc
commit e3c6500b06
3 changed files with 2 additions and 1 deletions

View File

@@ -86,7 +86,7 @@ func BearerAuthMiddleware() echo.MiddlewareFunc {
// Extract the token
token := strings.TrimPrefix(auth, "Bearer ")
// Get expected token from environment
expectedToken := os.Getenv("API_TOKEN")
if expectedToken == "" {