Old partial attempt at "public mode"

This commit is contained in:
Wingy 2020-10-29 11:24:13 -04:00
parent f872785e64
commit 8f6b030ca8
6 changed files with 37 additions and 18 deletions

View file

@ -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');
}