fixed req.route bug when no routes match
This commit is contained in:
parent
5d0d5ef858
commit
c4891c3866
@ -33,7 +33,7 @@ module.exports = async function(req) {
|
|||||||
fileInfo: {},
|
fileInfo: {},
|
||||||
cspNonce: req.cspNonce,
|
cspNonce: req.cspNonce,
|
||||||
user: { avatar: assets.get('user.svg'), loggedIn: false },
|
user: { avatar: assets.get('user.svg'), loggedIn: false },
|
||||||
route: req.route.path,
|
route: req.route ? req.route.path : null,
|
||||||
authConfig,
|
authConfig,
|
||||||
layout
|
layout
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user