This commit is contained in:
oiov
2025-03-29 18:08:48 +08:00
parent a549481b61
commit d4745e1234
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
View File
File diff suppressed because one or more lines are too long