Change route decorator to use GET method for downloading images

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-01-29 14:27:02 -03:00
commit 6c30eb539b

View file

@ -74,7 +74,7 @@ async def download_file(
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(
file_name: str, flow_id: str = Depends(get_flow_id), storage_service: StorageService = Depends(get_storage_service)
):