mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 20:31:34 +02: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:
committed by
sharelatex
parent
869fcf7952
commit
84de1af960
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user