Skip to content

Commit b4b4c28

Browse files
author
Mick Lawitzke
authored
Renamed @put to @patch
Related to nestjs/schematics#610
1 parent 39b6837 commit b4b4c28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/recipes/crud-generator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class UsersController {
5151
return this.usersService.findOne(+id);
5252
}
5353

54-
@Put(':id')
54+
@Patch(':id')
5555
update(@Param('id') id: string, @Body() updateUserDto: UpdateUserDto) {
5656
return this.usersService.update(+id, updateUserDto);
5757
}

0 commit comments

Comments
 (0)