fix(server): blob api should be public (#6109)
This commit is contained in:
@@ -32,6 +32,7 @@ export class WorkspacesController {
|
|||||||
// get workspace blob
|
// get workspace blob
|
||||||
//
|
//
|
||||||
// NOTE: because graphql can't represent a File, so we have to use REST API to get blob
|
// NOTE: because graphql can't represent a File, so we have to use REST API to get blob
|
||||||
|
@Public()
|
||||||
@Get('/:id/blobs/:name')
|
@Get('/:id/blobs/:name')
|
||||||
@CallTimer('controllers', 'workspace_get_blob')
|
@CallTimer('controllers', 'workspace_get_blob')
|
||||||
async blob(
|
async blob(
|
||||||
@@ -61,8 +62,8 @@ export class WorkspacesController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get doc binary
|
// get doc binary
|
||||||
@Get('/:id/docs/:guid')
|
|
||||||
@Public()
|
@Public()
|
||||||
|
@Get('/:id/docs/:guid')
|
||||||
@CallTimer('controllers', 'workspace_get_doc')
|
@CallTimer('controllers', 'workspace_get_doc')
|
||||||
async doc(
|
async doc(
|
||||||
@CurrentUser() user: CurrentUser | undefined,
|
@CurrentUser() user: CurrentUser | undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user