fixed req.route bug when no routes match

This commit is contained in:
Danny Coates 2019-03-14 12:02:36 -07:00
parent 5d0d5ef858
commit c4891c3866
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ module.exports = async function(req) {
fileInfo: {},
cspNonce: req.cspNonce,
user: { avatar: assets.get('user.svg'), loggedIn: false },
route: req.route.path,
route: req.route ? req.route.path : null,
authConfig,
layout
};