Sha256: 89da996439124d8dbd5d23854ec391c6cbc9a8003822c77103998df567523f6b

Contents?: true

Size: 657 Bytes

Versions: 5

Compression:

Stored size: 657 Bytes

Contents

Rails.application.routes.draw do
  get '/' => 'scrivito/cms_dispatch#index', as: :scrivito_root

  get '__scrivito/render_widget/:id/show_widget/:widget_id' => 'scrivito/cms_dispatch#show_widget'
  get '__scrivito/render_widget/:id/widget_details/:widget_id' => 'scrivito/cms_dispatch#widget_details'

  get '/__scrivito/details_page/:resource_id' => 'scrivito/cms_dispatch#details_page'

  match ':id(/*slug)',
    to: 'scrivito/cms_dispatch#index',
    constraints: { id: /\d+|[0-9a-f]{16}/ },
    as: 'cms_id',
    via: :all

  match '/*permalink',
    to: 'scrivito/cms_dispatch#index',
    as: :scrivito_permalink,
    format: false,
    via: :all
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
scrivito_sdk-0.40.0 config/cms_routes.rb
scrivito_sdk-0.40.0.rc2 config/cms_routes.rb
scrivito_sdk-0.40.0.rc1 config/cms_routes.rb
scrivito_sdk-0.30.0 config/cms_routes.rb
scrivito_sdk-0.30.0.rc1 config/cms_routes.rb