Sha256: e1bf87796a5a51704bf92ed051d87449a998ceab3dd0a259f22d4871c5941a0f

Contents?: true

Size: 564 Bytes

Versions: 11

Compression:

Stored size: 564 Bytes

Contents

# frozen_string_literal: true

class ActionDispatch::Routing::Mapper
  def occams_route_cms(options = {})
    Occams.configuration.public_cms_path = options[:path]

    scope module: :occams, as: :occams do
      namespace :cms, path: options[:path] do
        get 'cms-css/:site_id/:identifier(/:cache_buster)' => 'assets#render_css', as: 'render_css'
        get 'cms-js/:site_id/:identifier(/:cache_buster)'  => 'assets#render_js',  as: 'render_js'

        get '(*cms_path)' => 'content#show', as: 'render_page', action: '/:format'
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
occams-1.0.8 lib/occams/routes/cms.rb
occams-1.0.7.3 lib/occams/routes/cms.rb
occams-1.0.7.2 lib/occams/routes/cms.rb
occams-1.0.7.1 lib/occams/routes/cms.rb
occams-1.0.7 lib/occams/routes/cms.rb
occams-1.0.6.1 lib/occams/routes/cms.rb
occams-1.0.6 lib/occams/routes/cms.rb
occams-1.0.5 lib/occams/routes/cms.rb
occams-1.0.4 lib/occams/routes/cms.rb
occams-1.0.3 lib/occams/routes/cms.rb
occams-1.0.2 lib/occams/routes/cms.rb