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:
committed by
Trevor Buckner
parent
ed23578dcf
commit
2f9bd00d70
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user