diff --git a/app.py b/app.py index cf8d2ca..c7ae3fd 100644 --- a/app.py +++ b/app.py @@ -116,6 +116,7 @@ async def get_api_key(api_key_header: str = Security(api_key_header)) -> str: ) token = api_key_header.split(' ')[1] + print(f"Token : {token}") if token != API_KEY: raise HTTPException( status_code=401, diff --git a/config.py b/config.py index fb72445..4a3aecf 100644 --- a/config.py +++ b/config.py @@ -1,4 +1,7 @@ import os +from dotenv import load_dotenv + +load_dotenv() QUIZ_TYPES = { 1: { "name": "Single Line Text Inputs", diff --git a/requirements.txt b/requirements.txt index d4a7178..38f86a5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -26,5 +26,6 @@ python-docx==1.1.2 unstructured==0.17.2 pypdf==5.4.0 gunicorn==23.0.0 +python-dotenv