Skip to content

Commit 42a64ad

Browse files
Merge pull request #1822 from MickL/patch-4
Renamed @put to @patch
2 parents 02e0629 + b4b4c28 commit 42a64ad

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)