mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 03:53:05 -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(
|
webRouter.get(
|
||||||
'/project',
|
'/project',
|
||||||
AuthenticationController.requireLogin(),
|
AuthenticationController.requireLogin(),
|
||||||
|
RateLimiterMiddleware.rateLimit({
|
||||||
|
endpointName: 'open-project',
|
||||||
|
maxRequests: 20,
|
||||||
|
timeInterval: 60
|
||||||
|
}),
|
||||||
ProjectController.projectListPage
|
ProjectController.projectListPage
|
||||||
)
|
)
|
||||||
webRouter.post(
|
webRouter.post(
|
||||||
|
|
Loading…
Reference in a new issue