Merge importPage functions into newPage.

This commit is contained in:
G.Ambatte authored and Trevor Buckner committed 2021-03-04 22:01:11 -05:00
1 parent ed23578dcf
commit 2f9bd00d70
5 files changed
+24 -221

No files matched your search

+1 -1
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) {