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;