mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 18:32:41 +00:00
Add errorIndex.json
This commit is contained in:
@@ -398,12 +398,9 @@ app.get('/account', asyncHandler(async (req, res, next)=>{
|
||||
}));
|
||||
|
||||
app.get('/error', (req, res, next)=>{
|
||||
console.log('ERROR PAGE');
|
||||
const errorCookie = JSON.parse(req.cookies['HOMEBREWERY_Error']) || {};
|
||||
const errorCookie = JSON.parse(req.cookies['HOMEBREWERY_Error']);
|
||||
if(errorCookie){ res.cookie('HOMEBREWERY_Error', '', { maxAge: 0 }); }
|
||||
|
||||
console.log(errorCookie);
|
||||
|
||||
req.ogMeta = errorCookie.ogMeta;
|
||||
req.brew = errorCookie.error;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user