diff --git a/invokeai/app/api/routers/images.py b/invokeai/app/api/routers/images.py index 2bc0b48251..3157878573 100644 --- a/invokeai/app/api/routers/images.py +++ b/invokeai/app/api/routers/images.py @@ -218,9 +218,8 @@ async def get_image_workflow( raise HTTPException(status_code=404) -@images_router.api_route( +@images_router.get( "/i/{image_name}/full", - methods=["GET", "HEAD"], operation_id="get_image_full", response_class=Response, responses={ @@ -231,6 +230,18 @@ async def get_image_workflow( 404: {"description": "Image not found"}, }, ) +@images_router.head( + "/i/{image_name}/full", + operation_id="get_image_full_head", + response_class=Response, + responses={ + 200: { + "description": "Return the full-resolution image", + "content": {"image/png": {}}, + }, + 404: {"description": "Image not found"}, + }, +) async def get_image_full( image_name: str = Path(description="The name of full-resolution image file to get"), ) -> Response: