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

This commit is contained in:
liuyi 2024-03-14 02:36:13 +00:00
parent c1f5e848b4
commit c5d8c6cc8c
No known key found for this signature in database
GPG Key ID: 56709255DC7EC728

View File

@ -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,