This commit is contained in:
William Mantly 2016-02-02 13:28:48 -05:00
parent 3bc57876ad
commit f2a0f7cfa7

View File

@ -86,6 +86,7 @@ router.get('/list', function(req, res, next) {
router.post('/run/:ip?', function(req, res, next){ router.post('/run/:ip?', function(req, res, next){
var runner = function(res, req, ip){ var runner = function(res, req, ip){
console.log('req body', req.body)
request.post({url:'http://'+ip, body:req.post}, function(error, response, body){ request.post({url:'http://'+ip, body:req.post}, function(error, response, body){
console.log('runner body:', body) console.log('runner body:', body)
body = JSON.parse(body); body = JSON.parse(body);