added url property to all routes

v1.18.x
barisusakli 9 years ago
parent 7563873bd4
commit 8ea5752b50

@ -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;

Loading…
Cancel
Save