mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 14:12:40 +00:00
"Added new route for '/vault' and updated catch-all for invalid routes"
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user