mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -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
ec8cf6d33e
commit
7997a0955a
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