Move media files to a different dir

This commit is contained in:
cmdr2
2022-08-24 21:12:42 +05:30
parent 3d36b5e848
commit 4170895646
6 changed files with 5 additions and 5 deletions

View File

@ -51,6 +51,6 @@ async def image(req : ImageRequest):
res = requests.post(PREDICT_URL, json=data)
return res.json()
@app.get('/ding.mp3')
@app.get('/media/ding.mp3')
def read_root():
return FileResponse('ding.mp3')
return FileResponse('media/ding.mp3')