Fix issues when discovering images

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

No files matched your search

+3 -1
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(