From 96b032f8165d8f92ec10e142544f6e62d7a6be36 Mon Sep 17 00:00:00 2001 From: william Date: Fri, 22 Apr 2016 12:59:52 -0400 Subject: [PATCH] crunner --- routes/api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/api.js b/routes/api.js index 02fa6ab..24bb334 100644 --- a/routes/api.js +++ b/routes/api.js @@ -29,8 +29,10 @@ var lxcTimeout = function(ip, time){ var runner = function(req, res, ip){ lxcTimeout(ip); + console.log('runner!!!'); return request.post({url:'http://'+ip, body: JSON.stringify({code: req.params.code}) }, function(error, response, body){ - body = JSON.parse(body); + console.log(body); + // body = JSON.parse(body); body['ip'] = ip.replace('10.0.', ''); return res.json(body); });