Skip to content

Commit e5cfd44

Browse files
authored
Merge pull request #552 from julianomcl/docs/fix-docs-examples
docs: fix docs examples
2 parents 6fe8920 + 057471c commit e5cfd44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

website/docs/basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export default async (req: NextApiRequest, res: NextApiResponse) => {
192192
However, with `next-api-decorators` you can write the same handler in a declarative manner:
193193

194194
```ts
195-
import { createHandler, Body, Get, HttpCode, NotFoundException, Post, Query } from 'next-api-decorators';
195+
import { createHandler, Body, Get, HttpCode, NotFoundException, Post, Query, ValidationPipe } from 'next-api-decorators';
196196

197197
class User {
198198
// GET /api/user

website/docs/validation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class LocationHandler {
7979
@Post()
8080
saveLocation(@Body(ValidationPipe) body: MapMarker) {
8181
// Do something with the data.
82-
return `Location "${body.label}" saved.';
82+
return `Location "${body.label}" saved.`;
8383
}
8484
}
8585

0 commit comments

Comments
 (0)