Commit 53925cd 1 parent d1bbbd1 commit 53925cd Copy full SHA for 53925cd
File tree 1 file changed +3
-1
lines changed
src/app/api/model/[...path]
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import type { NextRequest } from "next/server";
5
5
import { authOptions } from "../../../../server/auth" ;
6
6
import { prisma } from "../../../../server/db" ;
7
7
8
- type Context = { params : { path : string [ ] } } ;
9
8
const apiHandler = ApiHandler ( ) ;
10
9
11
10
async function getPrisma ( ) {
@@ -17,6 +16,8 @@ async function getPrisma() {
17
16
} ) as unknown as DbClientContract ;
18
17
}
19
18
19
+ type Context = { params : { path : string [ ] } } ;
20
+
20
21
// A shim for adapting the Next.js "app" route handler
21
22
const routeHandler = async ( req : NextRequest , context : Context ) => {
22
23
const url = new URL ( req . url ) ;
@@ -47,5 +48,6 @@ export {
47
48
routeHandler as GET ,
48
49
routeHandler as POST ,
49
50
routeHandler as PUT ,
51
+ routeHandler as PATCH ,
50
52
routeHandler as DELETE ,
51
53
} ;
You can’t perform that action at this time.
0 commit comments