AXCWG 5 months ago
parent
commit
91e02e9a46
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main.js

+ 2 - 1
main.js

@@ -17,7 +17,8 @@ app.post('/submit', function (req, res) {
         res.arrayBuffer() .then(r => fs.writeFileSync("./file", Buffer.from(r) ));
     })
     res.header("Access-Control-Allow-Origin", "*");
-    res.end()
+    res.end("api_success");
+
 })
 app.options('/submit', function (req, res) {
     res.header("Access-Control-Allow-Origin", "*");