Fixed assets mounting in app and container

This commit is contained in:
2023-09-08 19:40:33 +03:00
parent 0df1d50612
commit 543b7b0c46
7 changed files with 8 additions and 3 deletions

View File

@ -46,7 +46,7 @@ app.mount("/uploads", StaticFiles(directory = "./uploads"))
# эндпоинт для возвращения согласия в pdf
@app.get("/privacy_policy.pdf")
async def privacy_policy():
return FileResponse("privacy_policy.pdf")
return FileResponse("./privacy_policy.pdf")
# получение списка объявлений
@app.get("/api/announcements", response_model=List[pydantic_schemas.Announcement])#адрес объявлений