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