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.
auth.verify()
1 parent 0887c8e commit 06be9bfCopy full SHA for 06be9bf
app/api/v2/escape/menu/categories/[categoryId]/route.ts
@@ -20,7 +20,7 @@ export async function DELETE(
20
let categoryId = Number(params.categoryId);
21
// verify productId is an integer
22
if (isNaN(categoryId) || !categoryId) {
23
- return NextResponse.json({error: "categoryId must be an integer"}, {status: 400});
+ return auth.verify(NextResponse.json({error: "categoryId must be an integer"}, {status: 400}));
24
}
25
26
0 commit comments