X-Git-Url: https://git.josue.xyz/?p=VSoRC%2F.git;a=blobdiff_plain;f=src%2Froutes%2Findex.js;h=cbb21a373b5b46cd6a31b08084547ac0e36ffae0;hp=a9299a95c374fc4f5ff5857a51cb6ceb889df32c;hb=34baebb7bfe5bf15bc1decbbbc3e47a42a279919;hpb=7319e156cc200d31b27ec9da78766d928d589c52 diff --git a/src/routes/index.js b/src/routes/index.js index a9299a9..cbb21a3 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -71,6 +71,18 @@ router.get('/gettopo', (req, res) => { }); }); +router.get('/listswitch', (req, res) => { + var sys = require('sys') + var exec = require('child_process').exec; + var child; + child = exec("curl localhost:8080/data?list=switches", function(error, stdout, stderr) { + console.log("listswitch"); + console.log(stdout); + res.send(stdout); + }); +}); + + router.get('/startcontroller', (req, res) => { var sys = require('sys') var exec = require('child_process').exec;