diff --git a/services/web/app/coffee/router.coffee b/services/web/app/coffee/router.coffee index 5e16073ed3..854e852493 100644 --- a/services/web/app/coffee/router.coffee +++ b/services/web/app/coffee/router.coffee @@ -176,7 +176,12 @@ module.exports = class Router webRouter.get "/project/:Project_id/messages", AuthorizationMiddlewear.ensureUserCanReadProject, ChatController.getMessages webRouter.post "/project/:Project_id/messages", AuthorizationMiddlewear.ensureUserCanReadProject, ChatController.sendMessage - webRouter.get /learn(\/.*)?/, WikiController.getPage + webRouter.get /learn(\/.*)?/, RateLimiterMiddlewear.rateLimit({ + endpointName: "wiki" + params: [] + maxRequests: 60 + timeInterval: 60 + }), WikiController.getPage webRouter.post "/project/:Project_id/references/index", AuthorizationMiddlewear.ensureUserCanReadProject, ReferencesController.index webRouter.post "/project/:Project_id/references/indexAll", AuthorizationMiddlewear.ensureUserCanReadProject, ReferencesController.indexAll