Skip to content

Commit 1117d9b

Browse files
committed
docs(pipes): use more appropriate put http method
1 parent 9c5f901 commit 1117d9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/pipes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ async create(createCatDto) {
333333
The `ZodValidationPipe` can be applied to specific parameters and alongside built-in pipes. For example, where we want to validate the route path `id` parameter with the `ParseIntPipe` seperately from the request body:
334334

335335
```typescript
336-
@Post('/:id')
336+
@Put('/:id')
337337
async update(
338338
@Param('id', ParseIntPipe) id: number,
339339
@Body(new ZodValidationPipe(createCatSchema)) body: CreateCatDto

0 commit comments

Comments
 (0)