From 0325f3f04197ca5f07ebef45f75994e8d2253242 Mon Sep 17 00:00:00 2001 From: xiaodong zuo Date: Wed, 11 Jan 2023 22:23:03 +0800 Subject: [PATCH] fix: add public-doc api --- packages/data-center/src/provider/affine/apis/workspace.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/data-center/src/provider/affine/apis/workspace.ts b/packages/data-center/src/provider/affine/apis/workspace.ts index 6ac1d63c92..c8eebd01ea 100644 --- a/packages/data-center/src/provider/affine/apis/workspace.ts +++ b/packages/data-center/src/provider/affine/apis/workspace.ts @@ -176,7 +176,7 @@ export async function downloadWorkspace( published = false ): Promise { if (published) { - return bareClient.get(`api/workspace/${workspaceId}/doc`).arrayBuffer(); + return bareClient.get(`api/public/doc/${workspaceId}`).arrayBuffer(); } return client.get(`api/workspace/${workspaceId}/doc`).arrayBuffer(); }