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