0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Merge importPage functions into newPage.

This commit is contained in:
G.Ambatte
2021-03-02 20:30:11 +13:00
committed by Trevor Buckner
parent ed23578dcf
commit 2f9bd00d70
5 changed files with 24 additions and 221 deletions

View File

@@ -144,7 +144,7 @@ app.get('/edit/:id', (req, res, next)=>{
}
});
//Import Page
//New Page
app.get('/new/:id', (req, res, next)=>{
res.header('Cache-Control', 'no-cache, no-store'); //reload the latest saved brew when pressing back button, not the cached version before save.
if(req.params.id.length > 12) {