Skip to content

Commit

Permalink
limitter-off
Browse files Browse the repository at this point in the history
  • Loading branch information
solaris0051 committed Nov 30, 2023
1 parent fd71e0d commit 2089e83
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 23 deletions.
12 changes: 6 additions & 6 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ app.use(
})
);

const RateLimit = require("express-rate-limit");
const limiter = RateLimit({
windowMs: 1 * 60 * 1000,
max: 100,
});
app.use(limiter);
// const RateLimit = require("express-rate-limit");
// const limiter = RateLimit({
// windowMs: 1 * 60 * 1000,
// max: 100,
// });
// app.use(limiter);

const mongoose = require("mongoose");
const dotenv = require("dotenv");
Expand Down
15 changes: 0 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"dotenv": "^16.3.1",
"express": "~4.18.2",
"express-async-handler": "^1.2.0",
"express-rate-limit": "^7.1.5",
"express-validator": "^7.0.1",
"helmet": "^7.1.0",
"http-errors": "~2.0.0",
Expand All @@ -29,5 +28,5 @@
},
"overrides": {
"semver": "7.5.3"
}
}
}

0 comments on commit 2089e83

Please sign in to comment.