|
|
@ -151,7 +151,7 @@ middleware.buildHeader = function(req, res, next) {
|
|
|
|
function(next) {
|
|
|
|
function(next) {
|
|
|
|
controllers.api.getConfig(req, res, function(err, config) {
|
|
|
|
controllers.api.getConfig(req, res, function(err, config) {
|
|
|
|
res.locals.config = config;
|
|
|
|
res.locals.config = config;
|
|
|
|
next();
|
|
|
|
next(err);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
function(next) {
|
|
|
|
function(next) {
|
|
|
@ -163,9 +163,7 @@ middleware.buildHeader = function(req, res, next) {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
], function(err) {
|
|
|
|
], next);
|
|
|
|
next(err);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
middleware.renderHeader = function(req, res, callback) {
|
|
|
|
middleware.renderHeader = function(req, res, callback) {
|
|
|
|