Browse Source

files

master
zeus 4 years ago
parent
commit
0396337a3d
  1. 7
      swarmlab-app/src/run/app.js

7
swarmlab-app/src/run/app.js

@ -51,8 +51,6 @@ app.get(
} }
); );
app.use(express.json());
//app.use(helmet());
app.get( app.get(
"/test", "/test",
@ -65,7 +63,6 @@ app.get(
var data = req.query["input"]; var data = req.query["input"];
var RES = new Object(); var RES = new Object();
console.error(`Client called GET from axios`); console.error(`Client called GET from axios`);
// RES.message = "Server responded with success";
res.json(data); res.json(data);
} }
); );
@ -102,5 +99,5 @@ io.on("connection", (s) => {
}); });
http.listen(3000, () => console.error("listening on http://0.0.0.0:3000/")); http.listen(3000, () => console.error("listening on http://0.0.0.0:3000/"));
console.error("Lefteris demo project"); console.error("Run demo project");
console.log("kati"); console.log("Hello World!");

Loading…
Cancel
Save