Merge pull request #2179 from overleaf/sk-re-add-project-dashboard-rate-limit

Re-add rate limit on /project

GitOrigin-RevId: 1099361db517c8bfce08b4bbc6b64d05205cccb1
This commit is contained in:
Eric Mc Sween 2019-09-26 08:42:33 -04:00 committed by sharelatex
parent 9cd5af840a
commit 7951ee229a

View file

@ -262,6 +262,11 @@ function initialize(webRouter, privateApiRouter, publicApiRouter) {
webRouter.get(
'/project',
AuthenticationController.requireLogin(),
RateLimiterMiddleware.rateLimit({
endpointName: 'open-dashboard',
maxRequests: 30,
timeInterval: 60
}),
ProjectController.projectListPage
)
webRouter.post(