From 076f134782420b8c258ca154479a46b9d62d8707 Mon Sep 17 00:00:00 2001 From: Hage Yaapa Date: Wed, 16 Mar 2016 21:51:39 +0530 Subject: [PATCH] docs: change example to only count page loads fixes #56 closes #57 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 825c2da..181ce52 100644 --- a/README.md +++ b/README.md @@ -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