Browse Source

removed sending stuff back on posts

Lucas 1 year ago
parent
commit
dfbb45cf62
2 changed files with 3 additions and 2 deletions
  1. 1 0
      .gitignore
  2. 2 2
      index.js

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+data.json

+ 2 - 2
index.js

@@ -48,7 +48,7 @@ app.post("/api/add", (req, res) => {
     fs.writeFileSync("data.json", arrjson);
     fs.writeFileSync("data.json", arrjson);
 
 
     res.set("Access-Control-Allow-Origin", "*");
     res.set("Access-Control-Allow-Origin", "*");
-    res.send(text);
+    //res.send(text);
   });
   });
 });
 });
 
 
@@ -83,7 +83,7 @@ app.post("/api/remove", (req, res) => {
   });
   });
 
 
   res.set("Access-Control-Allow-Origin", "*");
   res.set("Access-Control-Allow-Origin", "*");
-  res.send("Removed element at id: " + id);
+  //res.send("Removed element at id: " + id);
 });
 });
 
 
 app.listen(port, () => {
 app.listen(port, () => {