From 24495f33405112e77fe418a35b35620653bddd56 Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Tue, 11 Sep 2018 09:57:51 +0100 Subject: [PATCH] Also redirect not found read tokens to v1 --- services/web/app/coffee/router.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/app/coffee/router.coffee b/services/web/app/coffee/router.coffee index 1fc42c354a..35de9f804f 100644 --- a/services/web/app/coffee/router.coffee +++ b/services/web/app/coffee/router.coffee @@ -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({