Skip to content

Commit

Permalink
fix(server): blob api should be public (#6109)
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo committed Mar 14, 2024
1 parent c1f5e84 commit c5d8c6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/backend/server/src/core/workspaces/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c5d8c6c

Please sign in to comment.