Sha256: 5beb0c33d8b1a89cf3de9ccd62b4f9866f80a10dccb99d81b18f9bf04dc98a68

Contents?: true

Size: 326 Bytes

Versions: 10

Compression:

Stored size: 326 Bytes

Contents

Rails.application.routes.draw do

  match '/foo' => 'foo#index', as: 'foo', via: :all

  # Back-office
  mount Locomotive::Engine => '/locomotive', as: 'locomotive'

  # API
  mount Locomotive::API.to_app => '/locomotive(/:site_handle)/api'

  # Render site
  mount Locomotive::Steam::Server.to_app => '/', anchor: false

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
locomotivecms-3.0.0.rc6 spec/dummy/config/routes.rb
locomotivecms-3.0.0.rc5 spec/dummy/config/routes.rb
locomotivecms-3.0.0.rc4 spec/dummy/config/routes.rb
locomotivecms-3.0.0.rc3 spec/dummy/config/routes.rb
locomotivecms-3.0.0.rc2 spec/dummy/config/routes.rb
locomotivecms-3.0.0.rc1 spec/dummy/config/routes.rb
locomotivecms-3.0.0.pre.beta.1 spec/dummy/config/routes.rb
locomotivecms-3.0.0.pre.alpha.3 spec/dummy/config/routes.rb
locomotivecms-3.0.0.pre.alpha.2 spec/dummy/config/routes.rb
locomotivecms-3.0.0.pre.alpha spec/dummy/config/routes.rb