From cf460aaa2e22c50d018033421ba07a528ab72ac0 Mon Sep 17 00:00:00 2001 From: niftylettuce Date: Wed, 6 Apr 2016 15:00:17 -0400 Subject: [PATCH] Update Readme.md --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 80f4097..709e737 100644 --- a/Readme.md +++ b/Readme.md @@ -12,7 +12,7 @@ **v0.2.0+**: As of `v0.2.0`, we now allow you to pass `?limit=0` to get infinite (all) results. This may impose security or performance issues for your application, so we suggest you to write a quick middleware fix such as the one below, or use rate limiting middleware to prevent abuse. -```bash +```js app.all(function(req, res, next) { // set default or minimum is 10 (as it was prior to v0.2.0) if (req.query.limit <= 10) req.query.limit = 10;