feat(server): rate limit all routes (#4561)
This commit is contained in:
@@ -5,7 +5,6 @@ import bodyParser from "koa-body";
|
||||
import Router from "koa-router";
|
||||
import { AuthenticationError } from "@server/errors";
|
||||
import auth from "@server/middlewares/authentication";
|
||||
import { defaultRateLimiter } from "@server/middlewares/rateLimiter";
|
||||
import { Collection, Team, View } from "@server/models";
|
||||
import providers from "./providers";
|
||||
|
||||
@@ -13,7 +12,6 @@ const app = new Koa();
|
||||
const router = new Router();
|
||||
|
||||
router.use(passport.initialize());
|
||||
router.use(defaultRateLimiter());
|
||||
|
||||
// dynamically load available authentication provider routes
|
||||
providers.forEach((provider) => {
|
||||
|
||||
Reference in New Issue
Block a user