express-rate icon indicating copy to clipboard operation
express-rate copied to clipboard

Fix an express deprecation

Open dougluce opened this issue 10 years ago • 0 comments

This message was given when rate limiting is hit:

express deprecated res.json(status, obj): Use res.status(status).json(obj) instead node_modules/express-rate/lib/rate.js:61:17

The deprecation is mentioned in https://github.com/strongloop/express/releases/tag/4.7.0

Also update the docs and example.

dougluce avatar Oct 29 '14 21:10 dougluce