mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
13 lines
296 B
TypeScript
13 lines
296 B
TypeScript
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)
|
|
} |