added please
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
QUIZ_TYPES = {
|
||||
1: {
|
||||
"name": "Single Line Text Inputs",
|
||||
|
||||
@@ -26,5 +26,6 @@ python-docx==1.1.2
|
||||
unstructured==0.17.2
|
||||
pypdf==5.4.0
|
||||
gunicorn==23.0.0
|
||||
python-dotenv
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user