From 0acf8000159c3eb457b01fef06a0603a0b532df5 Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Wed, 15 Nov 2023 08:49:15 -0500 Subject: [PATCH] update URL for bulk download placeholder --- invokeai/app/api/routers/images.py | 2 +- invokeai/frontend/web/src/services/api/endpoints/images.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/app/api/routers/images.py b/invokeai/app/api/routers/images.py index e8c8c693b3..dcf804c9a8 100644 --- a/invokeai/app/api/routers/images.py +++ b/invokeai/app/api/routers/images.py @@ -366,7 +366,7 @@ class ImagesDownloaded(BaseModel): ) -@images_router.post("/download", operation_id="download_images_from_list", response_model=ImagesDownloaded) +@images_router.post("/export", operation_id="download_images_from_list", response_model=ImagesDownloaded) async def download_images_from_list( image_names: list[str] = Body(description="The list of names of images to download", embed=True), board_id: Optional[str] = Body( diff --git a/invokeai/frontend/web/src/services/api/endpoints/images.ts b/invokeai/frontend/web/src/services/api/endpoints/images.ts index 166d00a3db..70c7047d37 100644 --- a/invokeai/frontend/web/src/services/api/endpoints/images.ts +++ b/invokeai/frontend/web/src/services/api/endpoints/images.ts @@ -1543,7 +1543,7 @@ export const imagesApi = api.injectEndpoints({ components['schemas']['Body_download_images_from_list'] >({ query: ({ image_names, board_id }) => ({ - url: `images/download`, + url: `images/export`, method: 'POST', body: { image_names,