Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed Apr 6, 2016
1 parent 67ed2aa commit cf460aa
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 @@ -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;
Expand Down

0 comments on commit cf460aa

Please sign in to comment.