Sha256: b916dbd382480fe96643ba195d160d2c352b7bab366cdb55df60f43a7da0873d

Contents?: true

Size: 664 Bytes

Versions: 1

Compression:

Stored size: 664 Bytes

Contents

require 'rails_versioned_routing'

Dummy::Application.routes.draw do
  extend RailsVersionedRouting

  version(3) do
    post 'a_path_only_in_v3', controller: 'sample', action: 'posted_a_path_only_in_v3'
    get 'a_path_only_in_v3', controller: 'sample'
  end

  version(2) do
    get 'a_path_overridden_from_v1/:id/whats/:ok', controller: 'sample', action: 'a_path_overridden_from_v1'
    get 'a_path_in_v2', controller: 'sample'
  end

  version(1) do
    get 'a_path_in_v1', controller: 'sample'
    get 'a_path_overridden_from_v1/:id/whats/:ok', controller: 'sample', action: 'a_path_overridden_from_v1'
  end

  get 'final_fallback', controller: 'sample'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_versioned_routing-1.1.0 test/dummy/config/routes.rb