Fix TikTok verify file path outside gitignored data dir

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
eric 2026-08-14 09:29:59 -05:00
parent 40d11ce332
commit 637690e476
2 changed files with 2 additions and 1 deletions

View File

@ -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")

View File

@ -0,0 +1 @@
tiktok-developers-site-verification=Sac63LUYsqRR1brRHZ2v2hw9x0RjXR9L