Skip to content

Commit 1af321e

Browse files
committed
refactor(api): change request type to NextRequest in GET handler for schema retrieval
1 parent c23853d commit 1af321e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/api/get-schema/[name]/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NextResponse } from "next/server";
1+
import { NextResponse, NextRequest } from "next/server";
22
import fs from "fs/promises";
33
import path from "path";
44

@@ -15,7 +15,7 @@ function safeJoin(base: string, target: string): string | null {
1515

1616

1717
export async function GET(
18-
request: Request,
18+
request: NextRequest,
1919
{ params }: { params: { name: string } }
2020
) {
2121
const schemaName = params.name;

0 commit comments

Comments
 (0)