File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,5 +40,5 @@ export async function DELETE(
4040 ) ;
4141 } ) ;
4242
43- return NextResponse . json ( { } )
43+ return auth . verify ( NextResponse . json ( { } ) )
4444}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export async function PATCH(
3030 } )
3131
3232
33- return NextResponse . json ( JSON . stringify ( newProduct ) ) ;
33+ return authCheck . verify ( NextResponse . json ( JSON . stringify ( newProduct ) ) ) ;
3434}
3535
3636
@@ -52,5 +52,5 @@ export async function POST(
5252 data : category
5353 } ) ;
5454
55- return NextResponse . json ( JSON . stringify ( newCategory ) ) ;
55+ return authCheck . verify ( NextResponse . json ( JSON . stringify ( newCategory ) ) ) ;
5656}
Original file line number Diff line number Diff line change @@ -41,5 +41,5 @@ export async function DELETE(
4141 }
4242 }
4343
44- return NextResponse . json ( JSON . stringify ( { } ) ) ;
44+ return authCheck . verify ( NextResponse . json ( JSON . stringify ( { } ) ) ) ;
4545}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export async function PATCH(
2828 data : product
2929 } ) ;
3030
31- return NextResponse . json ( JSON . stringify ( newProduct ) ) ;
31+ return authCheck . verify ( NextResponse . json ( JSON . stringify ( newProduct ) ) ) ;
3232}
3333
3434
@@ -51,7 +51,7 @@ export async function POST(
5151 data : product
5252 } ) ;
5353
54- return NextResponse . json ( JSON . stringify ( { } ) ) ;
54+ return authCheck . verify ( NextResponse . json ( JSON . stringify ( { } ) ) ) ;
5555}
5656
5757const menuCategoryWithProducts = Prisma . validator < Prisma . MenuCategoryDefaultArgs > ( ) ( { include : { menu_products : true } } )
You can’t perform that action at this time.
0 commit comments