You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
1.8 KiB

  1. {"ast":null,"code":"import Transaction from \"api/transaction/transaction\";\nexport default async function handler(req, resp) {\n var input = req.body;\n var res = await Transaction.newTransactionYamaha(input); // console.log(res[\"networkError\"]);\n\n resp.status(200).json(res);\n} // import Transaction from \"api/transaction/transaction\";\n// async function handler(req, resp) {\n// \tvar input = req.body;\n// var res = await Transaction.newTransaction(input.formValue);\n// console.log(input);\n// resp.status(200).json(res);\n// }\n// module.exports = {\n// \thandler: handler,\n// };","map":{"version":3,"sources":["C:/tbg-ecomm-nextjs/pages/api/transaction/create.js"],"names":["Transaction","handler","req","resp","input","body","res","newTransactionYamaha","status","json"],"mappings":"AAAA,OAAOA,WAAP,MAAwB,6BAAxB;AAEA,eAAe,eAAeC,OAAf,CAAuBC,GAAvB,EAA4BC,IAA5B,EAAkC;AAC7C,MAAIC,KAAK,GAAGF,GAAG,CAACG,IAAhB;AACA,MAAIC,GAAG,GAAG,MAAMN,WAAW,CAACO,oBAAZ,CAAiCH,KAAjC,CAAhB,CAF6C,CAG7C;;AACAD,EAAAA,IAAI,CAACK,MAAL,CAAY,GAAZ,EAAiBC,IAAjB,CAAsBH,GAAtB;AACH,C,CAED;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA","sourcesContent":["import Transaction from \"api/transaction/transaction\";\r\n\r\nexport default async function handler(req, resp) {\r\n var input = req.body;\r\n var res = await Transaction.newTransactionYamaha(input);\r\n // console.log(res[\"networkError\"]);\r\n resp.status(200).json(res);\r\n}\r\n\r\n// import Transaction from \"api/transaction/transaction\";\r\n\r\n// async function handler(req, resp) {\r\n// \tvar input = req.body;\r\n// var res = await Transaction.newTransaction(input.formValue);\r\n// console.log(input);\r\n// resp.status(200).json(res);\r\n// }\r\n\r\n// module.exports = {\r\n// \thandler: handler,\r\n// };"]},"metadata":{},"sourceType":"module"}