update
This commit is contained in:
@@ -14,7 +14,7 @@ export class UserController {
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
@ApiOperation({ summary: 'Get the current authenticated user profile' })
|
||||
@Get('/')
|
||||
@Get('/me')
|
||||
async getUser(@Req() req: AuthRequest) {
|
||||
const userId = req.user.sub;
|
||||
const user = await this.userService.findById(userId);
|
||||
|
||||
Reference in New Issue
Block a user