0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 11:22:39 +00:00

Redirect new to import.

This commit is contained in:
G.Ambatte
2021-02-27 17:55:29 +13:00
committed by Trevor Buckner
parent 32ef36d7f7
commit 41ecbb62a2
2 changed files with 3 additions and 3 deletions

View File

@@ -144,7 +144,7 @@ app.get('/edit/:id', (req, res, next)=>{
});
//Import Page
app.get('/import/:id', (req, res, next)=>{
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) {
const googleId = req.params.id.slice(0, -12);