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