runner
This commit is contained in:
parent
f2a0f7cfa7
commit
a6a951f333
@ -86,7 +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)
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user