Browse Source

more examples

develop
Dustin Diaz 10 years ago
parent
commit
3b92151dd1
  1. 14
      README.md

14
README.md

@ -51,4 +51,18 @@ limiter({
limiter({
lookup: 'user.id'
})
// limit your entire app
limiter({
path: '*',
method: 'all',
lookup: 'connection.remoteAddress'
})
// limit users on same IP
limiter({
path: '*',
method: 'all',
lookup: ['user.id', 'connection.remoteAddress']
})
```

Loading…
Cancel
Save