mirror of
https://github.com/docmost/docmost.git
synced 2026-05-16 05:44:04 +08:00
refactor
This commit is contained in:
@@ -48,6 +48,15 @@ export class SpaceWatcherController {
|
||||
return space;
|
||||
}
|
||||
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@Post('watched-ids')
|
||||
async getWatchedSpaceIds(
|
||||
@AuthUser() user: User,
|
||||
@AuthWorkspace() workspace: Workspace,
|
||||
) {
|
||||
return this.watcherService.getWatchedSpaceIds(user.id, workspace.id);
|
||||
}
|
||||
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@Post('watch')
|
||||
async watchSpace(
|
||||
|
||||
Reference in New Issue
Block a user