Browse Source

log

master
Rich Brown 1 year ago
parent
commit
86714df5a2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/index.js

+ 1
- 1
src/index.js View File

@@ -33,7 +33,7 @@ app.use(cookieSession({
}));

app.use((req, res, next) => {
req.session.count = req.session.token ? req.session.token : 1;
req.session.count = req.session.count ? req.session.count + 1 : 1;
console.log(req.session.count, '<-req.session.count');
next();
});


Loading…
Cancel
Save