@ -28,11 +28,12 @@ app.get('/api/action', function (req, res) {
limiter(options)
limiter(options)
```
```
- `path`: route path to the request
- `path`: `String` route path to the request
- `method`: http method. accepts `get`, `post`, `put`, `delete`, and of course Express' `all`
- `method`: `String` http method. accepts `get`, `post`, `put`, `delete`, and of course Express' `all`
- `lookup`: value lookup on the request object. Can be a single value or array. See [examples](#examples) for common usages
- `lookup`: `String|Array.<String>` value lookup on the request object. Can be a single value or array. See [examples](#examples) for common usages
- `total`: allowed number of requests before getting rate limited
- `total`: `Number` allowed number of requests before getting rate limited
- `expire`: amount of time in `ms` before the rate-limited is reset
- `expire`: `Number` amount of time in `ms` before the rate-limited is reset
- `whitelist`: `function(req)` optional param allowing the ability to whitelist. return `boolean`, `true` to whitelist, `false` to passthru to limitter.