We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26da900 commit 4070098Copy full SHA for 4070098
README.md
@@ -5,7 +5,7 @@
5
<h1 align="center">@storyofams/next-api-decorators</h1>
6
</p>
7
8
-<p align="center">Collection of decorators to create structured API routes with Next.js.</p>
+<p align="center">Collection of decorators to create typed Next.js API routes, with easy request validation and transformation.</p>
9
10
---
11
@@ -50,7 +50,7 @@ class User {
50
// GET /api/user
51
@Get()
52
public async fetchUser(@Query('id') id: string) {
53
- const user = await User.findById(id);
+ const user = await DB.findUserById(id);
54
55
if (!user) {
56
throw new NotFoundException('User not found.');
@@ -179,4 +179,4 @@ class Events {
179
throw new ForbiddenException();
180
}
181
182
-```
+```
0 commit comments