Change route decorator to use GET method for downloading images
This commit is contained in:
parent
d692ccd3ab
commit
6c30eb539b
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ async def download_file(
|
||||||
raise HTTPException(status_code=500, detail=str(e))
|
raise HTTPException(status_code=500, detail=str(e))
|
||||||
|
|
||||||
|
|
||||||
@router("/images/{flow_id}/{file_name}")
|
@router.get("/images/{flow_id}/{file_name}")
|
||||||
async def download_image(
|
async def download_image(
|
||||||
file_name: str, flow_id: str = Depends(get_flow_id), storage_service: StorageService = Depends(get_storage_service)
|
file_name: str, flow_id: str = Depends(get_flow_id), storage_service: StorageService = Depends(get_storage_service)
|
||||||
):
|
):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue