Dummy::Application.routes.draw do
  api vendor_string: "myvendor" do
    version 1 do
      cache as: 'v1' do
        resources :bar
      end
    end

    version 2 do
      cache as: 'v2' do
        resources :foo
        inherit from: 'v1'
      end
    end

    version 3 do
      inherit from: 'v2'
    end
  end

  match '/app/index' => 'application#index'
end

Dummy::Application.routes.draw do
  api vendor_string: "myvendor" do
    version 1 do
      cache as: 'v1' do
        resources :bar
      end
    end

    version 2 do
      cache as: 'v2' do
        resources :foo
        inherit from: 'v1'
      end
    end

    version 3 do
      inherit from: 'v2'
    end
  end

  get '/app/index' => 'application#index'
end

Use get instead of match.
Use get instead of match.
