mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 23:54:42 -04:00
UsersService: Add methods to find, create and delete users
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
1f22f47327
commit
219a3bcb5f
3 changed files with 49 additions and 13 deletions
|
@ -29,8 +29,10 @@ export class MeController {
|
|||
}
|
||||
|
||||
@Get()
|
||||
getMe(): UserInfoDto {
|
||||
return this.usersService.getUserInfo();
|
||||
async getMe(): Promise<UserInfoDto> {
|
||||
return this.usersService.toUserDto(
|
||||
await this.usersService.getUserByUsername('hardcoded'),
|
||||
);
|
||||
}
|
||||
|
||||
@Get('history')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue