env config improvement
This commit is contained in:
parent
f3cfc6abe0
commit
c02510659c
6 changed files with 51 additions and 15 deletions
|
@ -1,6 +1,6 @@
|
|||
const verifyAuth = require('./verifyAuth')
|
||||
|
||||
const publicMiddleware = () => process.env.LISTS_PUBLIC === 'true'
|
||||
const publicMiddleware = () => global._CC.config.wishlist.public
|
||||
? (req, res, next) => {
|
||||
if (!req.user) req.user = { _id: 'Unknown' }
|
||||
next()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue