Sha256: 0f05bc6667a448d3e656db74db134306f102ee779a932ccd4ae9ad7efa270d7f

Contents?: true

Size: 365 Bytes

Versions: 3

Compression:

Stored size: 365 Bytes

Contents

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

  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

3 entries across 3 versions & 1 rubygems

Version Path
scrivito_sdk-0.60.0 config/routes.rb
scrivito_sdk-0.60.0.rc2 config/routes.rb
scrivito_sdk-0.60.0.rc1 config/routes.rb