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,