mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #2108 from overleaf/sk-add-rate-limit-to-project-page
Add a rate limit to the `/project` page GitOrigin-RevId: ef77f092c94c6a88fc73354cee6b8572b84d3d3a
This commit is contained in:
parent
869fcf7952
commit
84de1af960
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-project',
|
||||
maxRequests: 20,
|
||||
timeInterval: 60
|
||||
}),
|
||||
ProjectController.projectListPage
|
||||
)
|
||||
webRouter.post(
|
||||
|
|
Loading…
Reference in a new issue