Updated express-rate-limit example to match implementation examples found on packages README

This commit is contained in:
Mark Vogelgesang
2023-01-18 14:42:40 -05:00
parent 5173f10e68
commit c9119848d9
3 changed files with 13 additions and 9 deletions

View File

@@ -3,7 +3,7 @@ var app = express();
// set up rate limiter: maximum of five requests per minute
var RateLimit = require('express-rate-limit');
var limiter = new RateLimit({
var limiter = RateLimit({
windowMs: 1*60*1000, // 1 minute
max: 5
});