feat: media routing

This commit is contained in:
nihonium 2025-12-06 09:17:45 +03:00
parent eef3696e5e
commit 7787eb328f
Signed by: nihonium
GPG key ID: 0251623741027CFC
2 changed files with 11 additions and 1 deletions

View file

@ -99,7 +99,7 @@ async def download_by_url(payload: DownloadByUrlRequest):
return {"path": rel}
@app.get("/media/{path:path}")
@app.get("/{path:path}")
async def get_image(path: str):
"""
Отдаёт файл по относительному пути (например, posters/ab/cd/hash.jpg).