|
@ -178,6 +178,13 @@ ExpressApp.prototype.start = function(opts, cb) { |
|
|
next(); |
|
|
next(); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
function(next) { |
|
|
|
|
|
server.getPreferences({}, function(err, preferences) { |
|
|
|
|
|
if (err) return next(err); |
|
|
|
|
|
result.preferences = preferences; |
|
|
|
|
|
next(); |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
], function(err) { |
|
|
], function(err) { |
|
|
if (err) return returnError(err, res, req); |
|
|
if (err) return returnError(err, res, req); |
|
|
res.json(result); |
|
|
res.json(result); |
|
|