Sha256: a79375edb7058e8f2de4e772677687ab1028ee13fd1359618e5a0fbf1410a43b

Contents?: true

Size: 470 Bytes

Versions: 5

Compression:

Stored size: 470 Bytes

Contents

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

  with_options via: :all, constraints: {id: /[0-9a-f]{16}/} do |proxy|
    proxy.match '(/)(*slug-):id', to: 'scrivito/cms_dispatch#index', as: :cms_id
    proxy.match ':id(/*slug)', to: 'scrivito/cms_dispatch#legacy', as: :cms_legacy_id
  end

  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.65.2 config/routes.rb
scrivito_sdk-0.65.1 config/routes.rb
scrivito_sdk-0.65.0 config/routes.rb
scrivito_sdk-0.65.0.rc2 config/routes.rb
scrivito_sdk-0.65.0.rc1 config/routes.rb