mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-12 06:43:24 +03:00
fix(server): blob api should be public (#6109)
This commit is contained in:
parent
c1f5e848b4
commit
c5d8c6cc8c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user