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 b6db650 commit c23853dCopy full SHA for c23853d
app/api/get-schema/[name]/route.ts
@@ -16,9 +16,9 @@ function safeJoin(base: string, target: string): string | null {
16
17
export async function GET(
18
request: Request,
19
- context: { params: { name: string } }
+ { params }: { params: { name: string } }
20
) {
21
- const schemaName = context.params.name;
+ const schemaName = params.name;
22
23
if (!schemaName) {
24
return NextResponse.json({ error: "Schema name required" }, { status: 400 });
0 commit comments