role perms

This commit is contained in:
2025-11-12 09:28:56 +03:30
parent 046286b559
commit 440c3721ce
31 changed files with 488 additions and 98 deletions
+3
View File
@@ -15,10 +15,13 @@ export class UserController {
@Get('/me')
async getUser(@Req() req: AuthRequest) {
const userId = req.userId;
const restId = req.restId;
const user = await this.userService.findById(userId);
return {
message: `GET request: Retrieving profile for authenticated user `,
user,
userId,
restId,
};
}