From 5f6e20a980515b431cbcf1cea2275db89d59958d Mon Sep 17 00:00:00 2001 From: Matin Kaboli Date: Mon, 11 Sep 2017 22:02:08 +0430 Subject: [PATCH 1/2] Add next argument --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f70a1c5..42b0618 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ npm i flash app.use(session()); // session middleware app.use(require('flash')()); -app.use(function (req, res) { +app.use(function (req, res, next) { // flash a message req.flash('info', 'hello!'); next(); From 7e9d3ad71b4790fd03ccd309add2d30d0536268d Mon Sep 17 00:00:00 2001 From: Matin Kaboli Date: Mon, 11 Sep 2017 22:05:36 +0430 Subject: [PATCH 2/2] Add semicolon --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 42b0618..8df748f 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ app.use(function (req, res, next) { // flash a message req.flash('info', 'hello!'); next(); -}) +}); ``` ```jade