upd
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export async function POST(req: Request) {
|
||||
try {
|
||||
const { email } = await req.json();
|
||||
return Response.json({ email });
|
||||
const data = await req.json();
|
||||
return Response.json({ data, msg: "success" });
|
||||
} catch (error) {
|
||||
return Response.json({ statusText: "Server error" }, { status: 500 });
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user