added please

This commit is contained in:
OwusuBlessing
2025-06-18 17:09:36 +01:00
parent cbfdd96412
commit 5b055f2870
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -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,