Skip to content

Commit

Permalink
docs: change example to only count page loads
Browse files Browse the repository at this point in the history
fixes #56
closes #57
  • Loading branch information
hacksparrow authored and dougwilson committed Nov 11, 2016
1 parent 49fcd90 commit 076f134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ app.use(cookieSession({
keys: ['key1', 'key2']
}))

app.use(function (req, res, next) {
app.get('/', function (req, res, next) {
// Update views
req.session.views = (req.session.views || 0) + 1

Expand Down

0 comments on commit 076f134

Please sign in to comment.