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.
201 Created
200 Ok
1 parent c71adee commit 0887c8eCopy full SHA for 0887c8e
app/api/v2/escape/menu/categories/route.ts
@@ -52,5 +52,6 @@ export async function POST(
52
data: category
53
});
54
55
- return auth.verify(NextResponse.json(JSON.stringify(newCategory)));
+ // 201 Created
56
+ return auth.verify(NextResponse.json(JSON.stringify(newCategory), {status: 201}));
57
}
app/api/v2/escape/menu/products/route.ts
@@ -51,7 +51,8 @@ export async function POST(
51
data: product
- return auth.verify(NextResponse.json(JSON.stringify({})));
+ return auth.verify(NextResponse.json(JSON.stringify({}), {status: 201}));
58
const menuCategoryWithProducts = Prisma.validator<Prisma.MenuCategoryDefaultArgs>()({include: {menu_products: true}})
0 commit comments