Fix TikTok verify file path outside gitignored data dir
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
40d11ce332
commit
637690e476
@ -887,7 +887,7 @@ async def tiktok_url_prefix_verify_file() -> FileResponse:
|
||||
"""TikTok URL prefix ownership verification."""
|
||||
from pathlib import Path
|
||||
|
||||
path = Path(__file__).resolve().parent.parent / "data" / "tiktok_verify" / "tiktokSac63LUYsqRR1brRHZ2v2hw9x0RjXR9L.txt"
|
||||
path = Path(__file__).resolve().parent.parent / "tiktok_verify" / "tiktokSac63LUYsqRR1brRHZ2v2hw9x0RjXR9L.txt"
|
||||
if not path.is_file():
|
||||
raise HTTPException(404, "verification file missing")
|
||||
return FileResponse(path, media_type="text/plain")
|
||||
|
||||
@ -0,0 +1 @@
|
||||
tiktok-developers-site-verification=Sac63LUYsqRR1brRHZ2v2hw9x0RjXR9L
|
||||
Loading…
Reference in New Issue
Block a user