mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 14:10:53 +03:00
fixed req.route bug when no routes match
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user