From f142b65dae976232afb905aa88dd3c7b91a759aa Mon Sep 17 00:00:00 2001 From: william Date: Fri, 29 Jan 2016 16:25:20 -0500 Subject: [PATCH] config issue --- lxc.js | 2 +- routes/index.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lxc.js b/lxc.js index beee9ed..a791772 100644 --- a/lxc.js +++ b/lxc.js @@ -120,7 +120,7 @@ module.exports = function(config){ info.push(mapOut); } - + console.log('info:', info) cbData(info); }); }; diff --git a/routes/index.js b/routes/index.js index 45f0b1d..fc21a57 100644 --- a/routes/index.js +++ b/routes/index.js @@ -72,9 +72,7 @@ router.get('/info/:name', function(req, res, next){ }); router.get('/list', function(req, res, next) { - lxc.list(function(data){ - res.json(data); - }); + lxc.list(res.json(data)); }); module.exports = router;