This commit is contained in:
2025-07-16 16:25:16 +09:00
parent 11af12a806
commit 8135650344
34 changed files with 301 additions and 41 deletions

View File

@@ -0,0 +1,14 @@
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");
return await this.userService.changePassword(req.user.userId, dto);
}
}