From d09daf685fcd7cb90268c7a76c085dc9c8815406 Mon Sep 17 00:00:00 2001 From: william Date: Fri, 29 Jan 2016 16:28:20 -0500 Subject: [PATCH] config issue --- routes/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/index.js b/routes/index.js index a0f652f..45f0b1d 100644 --- a/routes/index.js +++ b/routes/index.js @@ -72,7 +72,9 @@ router.get('/info/:name', function(req, res, next){ }); router.get('/list', function(req, res, next) { - lxc.list(res.json); + lxc.list(function(data){ + res.json(data); + }); }); module.exports = router;