Old partial attempt at "public mode"
This commit is contained in:
parent
f872785e64
commit
8f6b030ca8
6 changed files with 37 additions and 18 deletions
|
@ -1,4 +1,5 @@
|
|||
const verifyAuth = require('../middlewares/verifyAuth');
|
||||
const public = require('../middlewares/public');
|
||||
const express = require('express');
|
||||
const path = require('path');
|
||||
|
||||
|
@ -16,7 +17,7 @@ module.exports = ({ db, config }) => {
|
|||
next();
|
||||
}
|
||||
},
|
||||
verifyAuth(),
|
||||
public(),
|
||||
(req, res) => {
|
||||
res.redirect('/wishlist');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue