Commit 95825589 authored by wuhao's avatar wuhao 🎯

asder

parent 7823a1b1
......@@ -7,11 +7,11 @@ import formidable from "formidable";
export default async function handler(req, res) {
if (req.method === "POST") {
const form = formidable({});
console.log('====================================');
console.log("====================================");
console.log(form);
console.log('====================================');
console.log("====================================");
res.status(200).json({data:"sad"});
res.status(200).json({ data: "sad" });
} else {
res.status(405).end(`Method ${method} Not Allowed`);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment