Fix issues when discovering images

This commit is contained in:
grossmj
2022-06-03 15:35:33 +07:00
parent 466aaf5c13
commit 30f7c0ce74
3 changed files with 8 additions and 3 deletions

View File

@ -129,7 +129,7 @@ async def get_image(
async def delete_image(
image_path: str,
images_repo: ImagesRepository = Depends(get_repository(ImagesRepository)),
) -> None:
) -> Response:
"""
Delete an image.
"""
@ -159,6 +159,8 @@ async def delete_image(
if not success:
raise ControllerError(f"Image '{image_path}' could not be deleted")
return Response(status_code=status.HTTP_204_NO_CONTENT)
@router.post("/prune", status_code=status.HTTP_204_NO_CONTENT)
async def prune_images(