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 c23853d commit 1af321eCopy full SHA for 1af321e
app/api/get-schema/[name]/route.ts
@@ -1,4 +1,4 @@
1
-import { NextResponse } from "next/server";
+import { NextResponse, NextRequest } from "next/server";
2
import fs from "fs/promises";
3
import path from "path";
4
@@ -15,7 +15,7 @@ function safeJoin(base: string, target: string): string | null {
15
16
17
export async function GET(
18
- request: Request,
+ request: NextRequest,
19
{ params }: { params: { name: string } }
20
) {
21
const schemaName = params.name;
0 commit comments