mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-11 22:21:05 +00:00
Also redirect not found read tokens to v1
This commit is contained in:
parent
e0ce988d32
commit
24495f3340
1 changed files with 2 additions and 1 deletions
|
@ -418,7 +418,8 @@ module.exports = class Router
|
||||||
maxRequests: 10,
|
maxRequests: 10,
|
||||||
timeInterval: 60
|
timeInterval: 60
|
||||||
}),
|
}),
|
||||||
TokenAccessController.readOnlyToken
|
TokenAccessController.readOnlyToken,
|
||||||
|
TokenAccessController.redirectNotFoundErrorToV1
|
||||||
|
|
||||||
webRouter.get '/:read_and_write_token([0-9]+[a-z]+)',
|
webRouter.get '/:read_and_write_token([0-9]+[a-z]+)',
|
||||||
RateLimiterMiddlewear.rateLimit({
|
RateLimiterMiddlewear.rateLimit({
|
||||||
|
|
Loading…
Reference in a new issue