mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +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: {},
|
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
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user