From a0b72ed700a6426b97417003474c829ba3a51fba Mon Sep 17 00:00:00 2001 From: william Date: Tue, 2 Feb 2016 13:30:55 -0500 Subject: [PATCH] runner --- routes/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api.js b/routes/api.js index 4d39beb..9b9297e 100644 --- a/routes/api.js +++ b/routes/api.js @@ -87,7 +87,7 @@ router.get('/list', function(req, res, next) { router.post('/run/:ip?', function(req, res, next){ 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.body}, function(error, response, body){ console.log('runner body:', body) body = JSON.parse(body); body['ip'] = ip.replace('10.0.', '')