feat: give names to middlewares

This commit is contained in:
Barış Soner Uşaklı
2018-12-17 16:03:01 -05:00
parent 7a43f26055
commit 53793e1603
4 changed files with 8 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ module.exports = function (middleware) {
var templateToRender;
async.waterfall([
function (next) {
options.loggedIn = !!req.uid;
options.loggedIn = req.uid > 0;
options.relative_path = nconf.get('relative_path');
options.template = { name: template };
options.template[template] = true;