From d2555fe71072f7239f5f7396b909ae6b1f720dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Tue, 21 Oct 2014 15:56:17 +0200 Subject: [PATCH] improved unleash-server api --- unleash-server/lib/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unleash-server/lib/api.js b/unleash-server/lib/api.js index 6d0a597b3c..4fa697dfdb 100644 --- a/unleash-server/lib/api.js +++ b/unleash-server/lib/api.js @@ -5,7 +5,7 @@ module.exports = function (app) { app.get('/features', function (req, res) { db.getFeatures().then(function (features) { - res.json(features); + res.json({features: features}); }); });