Sha256: 7e929f5ef0447e0c468763eacb91c8610016e36a2d83cfb23a2b1b0ca2f5d66b

Contents?: true

Size: 437 Bytes

Versions: 3

Compression:

Stored size: 437 Bytes

Contents

Rails.application.routes.draw do
  root to: 'scrivito/cms_dispatch#index'

  match '__scrivito/render_widget/:id/:action/:widget_id' => 'scrivito/cms_dispatch',  via: :get

  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: 'cms_permalink',
    format: false,
    via: :all
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scrivito_sdk-0.14.0 config/cms_routes.rb
scrivito_sdk-0.13.0 config/cms_routes.rb
scrivito_sdk-0.12.0 config/cms_routes.rb