Skip to content

Commit 53925cd

Browse files
committed
update
1 parent d1bbbd1 commit 53925cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/api/model/[...path]/route.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type { NextRequest } from "next/server";
55
import { authOptions } from "../../../../server/auth";
66
import { prisma } from "../../../../server/db";
77

8-
type Context = { params: { path: string[] } };
98
const apiHandler = ApiHandler();
109

1110
async function getPrisma() {
@@ -17,6 +16,8 @@ async function getPrisma() {
1716
}) as unknown as DbClientContract;
1817
}
1918

19+
type Context = { params: { path: string[] } };
20+
2021
// A shim for adapting the Next.js "app" route handler
2122
const routeHandler = async (req: NextRequest, context: Context) => {
2223
const url = new URL(req.url);
@@ -47,5 +48,6 @@ export {
4748
routeHandler as GET,
4849
routeHandler as POST,
4950
routeHandler as PUT,
51+
routeHandler as PATCH,
5052
routeHandler as DELETE,
5153
};

0 commit comments

Comments
 (0)