added url property to all routes

This commit is contained in:
barisusakli
2016-07-06 20:31:23 +03:00
parent 7563873bd4
commit 8ea5752b50

View File

@@ -38,6 +38,7 @@ module.exports = function(middleware) {
options.relative_path = nconf.get('relative_path');
options.template = {name: template};
options.template[template] = true;
options.url = (req.baseUrl + req.path).replace(/^\/api/, '');
options.bodyClass = buildBodyClass(req);
res.locals.template = template;