Also redirect not found read tokens to v1

This commit is contained in:
Alasdair Smith 2018-09-11 09:57:51 +01:00
parent e0ce988d32
commit 24495f3340

View file

@ -418,7 +418,8 @@ module.exports = class Router
maxRequests: 10,
timeInterval: 60
}),
TokenAccessController.readOnlyToken
TokenAccessController.readOnlyToken,
TokenAccessController.redirectNotFoundErrorToV1
webRouter.get '/:read_and_write_token([0-9]+[a-z]+)',
RateLimiterMiddlewear.rateLimit({