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]
|
token = api_key_header.split(' ')[1]
|
||||||
|
print(f"Token : {token}")
|
||||||
if token != API_KEY:
|
if token != API_KEY:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=401,
|
status_code=401,
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
|
load_dotenv()
|
||||||
QUIZ_TYPES = {
|
QUIZ_TYPES = {
|
||||||
1: {
|
1: {
|
||||||
"name": "Single Line Text Inputs",
|
"name": "Single Line Text Inputs",
|
||||||
|
|||||||
@@ -26,5 +26,6 @@ python-docx==1.1.2
|
|||||||
unstructured==0.17.2
|
unstructured==0.17.2
|
||||||
pypdf==5.4.0
|
pypdf==5.4.0
|
||||||
gunicorn==23.0.0
|
gunicorn==23.0.0
|
||||||
|
python-dotenv
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user