api 1차 포매팅

This commit is contained in:
jaehwang committed 2026-04-20 14:41:00 +09:00
1 parent 4f42efde18
commit 9d306eb68e
18 files changed
+538 -2

No files matched your search

View File
Whitespace-only changes.
+6
View File
@@ -0,0 +1,6 @@
import os
from fastapi import Header, HTTPException
async def verify_api_key(x_api_key: str = Header(...)):
if x_api_key != os.getenv("API_KEY"):
raise HTTPException(status_code=401, detail="Invalid API Key")