Add lowercase variant for old v2 route

This commit is contained in:
Donovan Daniels 2024-05-03 03:32:45 -05:00
parent 1988bbf70b
commit b0616e3b08
Signed by: Donovan_DMC
GPG Key ID: 907D29CBFD6157BA

View File

@ -31,6 +31,7 @@ module YiffRestRoutes
get(:browserconfig, constraints: { format: "xml" }) get(:browserconfig, constraints: { format: "xml" })
end end
get("/v2/(*category)", action: :index, controller: "api_v2") # TODO: make routes case insensitive
get("/V2/(*category)", action: :index, controller: "api_v2") get("/V2/(*category)", action: :index, controller: "api_v2")
root(to: "home#index") root(to: "home#index")
end end