import { Body, Controller, Patch, Request } from '@nestjs/common'; import { UsersService } from './users.service'; import { ChangePasswordDto } from './dto/change-password.dto'; @Controller('users') export class UsersController { constructor(private readonly userService: UsersService) {} @Patch('password') async changePassword(@Request() req, @Body() dto: ChangePasswordDto) { console.log("dd"); await this.userService.changePassword(req.user.userId, dto); return } }