Skip to content

Commit

Permalink
Merge pull request #552 from julianomcl/docs/fix-docs-examples
Browse files Browse the repository at this point in the history
docs: fix docs examples
  • Loading branch information
leeuwis authored Feb 26, 2023
2 parents 6fe8920 + 057471c commit e5cfd44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/docs/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion website/docs/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.`;
}
}

Expand Down

1 comment on commit e5cfd44

@vercel
Copy link

@vercel vercel bot commented on e5cfd44 Feb 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.