Spaces:
Paused
Paused
| import { Controller, Get, Request, UseGuards } from '@nestjs/common'; | |
| import { UsersService } from './users.service'; | |
| import { JwtAuthGuard } from '../auth/jwt-auth.guard'; | |
| ('users') | |
| export class UsersController { | |
| constructor(private readonly usersService: UsersService) {} | |
| (JwtAuthGuard) | |
| ('me') | |
| getProfile(() req) { | |
| return this.usersService.findById(req.user.userId); | |
| } | |
| } |