runner
This commit is contained in:
parent
ec85940bcb
commit
9a46cbfd9a
@ -85,6 +85,7 @@ router.get('/list', function(req, res, next) {
|
||||
});
|
||||
|
||||
router.post('/run/:ip?', function(req, res, next){
|
||||
|
||||
var runner = function(res, req, ip){
|
||||
console.log('runner on', ip,'with body:\n', typeof req.body);
|
||||
return request.post({url:'http://'+ip, json: req.body}, function(error, response, body){
|
||||
|
Loading…
x
Reference in New Issue
Block a user