diff --git a/lib/app.js b/lib/app.js index b57a9c40..95b375eb 100644 --- a/lib/app.js +++ b/lib/app.js @@ -101,7 +101,7 @@ module.exports = function (options) { }; } - routes.init(app, trader, authMiddleware); + routes.init(app, config, trader, authMiddleware); return server; }; diff --git a/lib/routes.js b/lib/routes.js index 2d3e1b56..3475a1d9 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -83,7 +83,8 @@ var pair = function(req, res) { ); }; -exports.init = function(app, trader, authMiddleware) { +exports.init = function(app, config, trader, authMiddleware) { + _lamassuConfig = config; _trader = trader; app.get('/poll/:currency', authMiddleware, poll);