diff --git a/website/docs/basics.md b/website/docs/basics.md index 9a464ba7..447b9636 100644 --- a/website/docs/basics.md +++ b/website/docs/basics.md @@ -192,7 +192,7 @@ export default async (req: NextApiRequest, res: NextApiResponse) => { However, with `next-api-decorators` you can write the same handler in a declarative manner: ```ts -import { createHandler, Body, Get, HttpCode, NotFoundException, Post, Query } from 'next-api-decorators'; +import { createHandler, Body, Get, HttpCode, NotFoundException, Post, Query, ValidationPipe } from 'next-api-decorators'; class User { // GET /api/user diff --git a/website/docs/validation.md b/website/docs/validation.md index 503bea8c..b0518f44 100644 --- a/website/docs/validation.md +++ b/website/docs/validation.md @@ -79,7 +79,7 @@ class LocationHandler { @Post() saveLocation(@Body(ValidationPipe) body: MapMarker) { // Do something with the data. - return `Location "${body.label}" saved.'; + return `Location "${body.label}" saved.`; } }