Skip to content

Commit

Permalink
Enabling web ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Pathikrit Bhowmick committed Jul 5, 2012
1 parent b1235fa commit 5585227
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions server.js
Expand Up @@ -40,18 +40,15 @@ server.get('/targets', function (req, res) {
});

server.post('/execute', function (req, res) {
console.log('Executing: ' + req.body.cmd);
res.redirect('/');
// launcher.execute(req.body.cmd, function() {
// launcher.reset(function() {
// res.redirect('/');
// });
// });
console.log('Execute: ' + req.body.cmd);
launcher.execute(req.body.cmd, function () {
res.redirect('/');
});
});

server.post('/control', function (req, res) {
console.log('Control: ' + req.body.cmd);
//launcher[req.body.cmd].call(-1);
launcher[req.body.cmd].call(-1);
res.redirect('/');
});

Expand Down

0 comments on commit 5585227

Please sign in to comment.