add info endpoint
This commit is contained in:
parent
6e55b1ed56
commit
b5d9f8b075
1 changed files with 9 additions and 0 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue