mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 16:12:38 +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
|
//Send rendered page
|
||||||
app.use(asyncHandler(async (req, res, next)=>{
|
app.use(asyncHandler(async (req, res, next)=>{
|
||||||
if (!req.route) return res.redirect('/'); // Catch-all for invalid routes
|
if (!req.route) return res.redirect('/'); // Catch-all for invalid routes
|
||||||
|
|||||||
Reference in New Issue
Block a user