crawling check

This commit is contained in:
jaehwang committed 2026-05-11 14:02:17 +09:00
1 parent 0d3543d84d
commit 26cd946e1b
5 files changed
+14 -2

No files matched your search

+2
View File
@@ -2,5 +2,7 @@ import os
from fastapi import Header, HTTPException
async def verify_api_key(x_api_key: str = Header(...)):
print(x_api_key)
print(os.getenv("API_KEY"))
if x_api_key != os.getenv("API_KEY"):
raise HTTPException(status_code=401, detail="Invalid API Key")