Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(server): blob api should be public (#6109)

liuyic5d8c6cc8cad
diff --git a/packages/backend/server/src/core/workspaces/controller.ts b/packages/backend/server/src/core/workspaces/controller.ts
index 14e9b952b4..f134604818 100644
--- a/packages/backend/server/src/core/workspaces/controller.ts
+++ b/packages/backend/server/src/core/workspaces/controller.ts
@@ -32,6 +32,7 @@ export class WorkspacesController {
// get workspace blob
//
// NOTE: because graphql can't represent a File, so we have to use REST API to get blob
+ @Public()
@Get('/:id/blobs/:name')
@CallTimer('controllers', 'workspace_get_blob')
async blob(
@@ -61,8 +62,8 @@ export class WorkspacesController {
}
// get doc binary
- @Get('/:id/docs/:guid')
@Public()
+ @Get('/:id/docs/:guid')
@CallTimer('controllers', 'workspace_get_doc')
async doc(
@CurrentUser() user: CurrentUser | undefined,