mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Updated express-rate-limit example to match implementation examples found on packages README
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user