feat(server): rate limit all routes (#4561)

This commit is contained in:
Apoorv Mishra
2022-12-10 19:17:18 +05:30
committed by GitHub
parent 053d10d893
commit 5c842087a5
3 changed files with 4 additions and 5 deletions

View File

@@ -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) => {