From b0616e3b087030d2af132b01afd3f19616eca593 Mon Sep 17 00:00:00 2001 From: Donovan Daniels Date: Fri, 3 May 2024 03:32:45 -0500 Subject: [PATCH] Add lowercase variant for old v2 route --- config/routes/yiff_rest_routes.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/routes/yiff_rest_routes.rb b/config/routes/yiff_rest_routes.rb index c598f86..4e8a0f5 100644 --- a/config/routes/yiff_rest_routes.rb +++ b/config/routes/yiff_rest_routes.rb @@ -31,6 +31,7 @@ module YiffRestRoutes get(:browserconfig, constraints: { format: "xml" }) end + get("/v2/(*category)", action: :index, controller: "api_v2") # TODO: make routes case insensitive get("/V2/(*category)", action: :index, controller: "api_v2") root(to: "home#index") end