feat: media routing
This commit is contained in:
parent
eef3696e5e
commit
7787eb328f
2 changed files with 11 additions and 1 deletions
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue