mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
9cd5af840a
commit
7951ee229a
1 changed files with 5 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue