mirror of
https://github.com/docmost/docmost.git
synced 2025-11-13 08:22:38 +10:00
add info endpoint
This commit is contained in:
@ -38,6 +38,15 @@ export class UserController {
|
||||
return user;
|
||||
}
|
||||
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@Post('info')
|
||||
async getUserIno(
|
||||
@AuthUser() authUser: User,
|
||||
@AuthWorkspace() workspace: Workspace,
|
||||
) {
|
||||
return { user: authUser, workspace };
|
||||
}
|
||||
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@Post('update')
|
||||
async updateUser(
|
||||
|
||||
Reference in New Issue
Block a user