Skip to content

Commit 4070098

Browse files
authored
chore(docs): updated introduction text
1 parent 26da900 commit 4070098

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<h1 align="center">@storyofams/next-api-decorators</h1>
66
</p>
77

8-
<p align="center">Collection of decorators to create structured API routes with Next.js.</p>
8+
<p align="center">Collection of decorators to create typed Next.js API routes, with easy request validation and transformation.</p>
99

1010
---
1111

@@ -50,7 +50,7 @@ class User {
5050
// GET /api/user
5151
@Get()
5252
public async fetchUser(@Query('id') id: string) {
53-
const user = await User.findById(id);
53+
const user = await DB.findUserById(id);
5454

5555
if (!user) {
5656
throw new NotFoundException('User not found.');
@@ -179,4 +179,4 @@ class Events {
179179
throw new ForbiddenException();
180180
}
181181
}
182-
```
182+
```

0 commit comments

Comments
 (0)