log l'env API_AUTH_DISABLED

This commit is contained in:
Colin Maudry
2026-07-08 19:08:42 +02:00
parent 25df072202
commit 0137981201
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -16,6 +16,7 @@ def _abort_401(message: str):
def require_token(fn):
@wraps(fn)
def wrapper(*args, **kwargs):
print(API_AUTH_DISABLED)
if not API_AUTH_DISABLED:
header = request.headers.get("Authorization", "")
if not header.startswith("Bearer "):