Test
This commit is contained in:
parent
8c476d2ec8
commit
cd2a0b4b17
1
index.js
1
index.js
|
@ -57,6 +57,7 @@ global.checkACL = function(req, perm) {
|
|||
|
||||
app.use((req, res, next) => {
|
||||
if (req.session.user) return next();
|
||||
if (req.path === "/") return next();
|
||||
if (req.path === '/login' || req.path === '/login/') return next();
|
||||
if (req.path === '/logout' || req.path === '/logout/') return next();
|
||||
if (req.path.startsWith('/public/') || req.path === '/favicon.ico' || req.path === '/robots.txt') return next();
|
||||
|
|
Loading…
Reference in a new issue