From eb168c95f9efd162ec5dcc533504177b2efec1f2 Mon Sep 17 00:00:00 2001 From: Benjamin Dean Date: Mon, 11 May 2015 10:50:05 -0700 Subject: [PATCH] Update router.js Change to remove the Express.js deprecated use warning in the console. Resolves issue #13 --- lib/web/articles/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web/articles/router.js b/lib/web/articles/router.js index 522cdaf..dce30ab 100644 --- a/lib/web/articles/router.js +++ b/lib/web/articles/router.js @@ -24,7 +24,7 @@ module.exports = function articlesRouter(app) { function listArticles(req, res, next) { app - .listArticles(req.user.id, 15, req.param('fresh')) + .listArticles(req.user.id, 15, req.params.fresh) .then(sendList, next); function sendList(list) {