-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
...rms/__testfixtures__/next-async-request-api-dynamic-props/route-access-props-02.input.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export function GET(req, { params }: any) { | ||
call(params.foo) | ||
} | ||
|
||
export async function DELETE(req, { params }: any) { | ||
call(params.foo) | ||
} | ||
|
||
export async function PATCH(req, context: any) { | ||
call(context.params.foo) | ||
} |
13 changes: 13 additions & 0 deletions
13
...ms/__testfixtures__/next-async-request-api-dynamic-props/route-access-props-02.output.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export async function GET(req, props: any) { | ||
const params = await props.params; | ||
call(params.foo) | ||
} | ||
|
||
export async function DELETE(req, props: any) { | ||
const params = await props.params; | ||
call(params.foo) | ||
} | ||
|
||
export async function PATCH(req, context: any) { | ||
call((await context.params).foo) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters