From f7c3e81b7b75125979a0b3cf54f3cca5aa6306bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sat, 31 Aug 2024 19:35:44 +0200 Subject: [PATCH] "Added new route for '/vault' and updated catch-all for invalid routes" --- server/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/app.js b/server/app.js index 3a0031609..f8bd753e1 100644 --- a/server/app.js +++ b/server/app.js @@ -434,6 +434,11 @@ if(isLocalEnvironment){ }); } +//Vault Page +app.get('/vault', asyncHandler(async(req, res, next)=>{ + return next(); +})); + //Send rendered page app.use(asyncHandler(async (req, res, next)=>{ if (!req.route) return res.redirect('/'); // Catch-all for invalid routes