api key
This commit is contained in:
@@ -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 == "" {
|
||||
|
||||
Reference in New Issue
Block a user