Sha256: e5e657d8ae38c0e608df8d9c5e0a6e37389c6e7c356f58dcf71c31c1029b7ec5

Contents?: true

Size: 566 Bytes

Versions: 1

Compression:

Stored size: 566 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

1 entries across 1 versions & 1 rubygems

Version Path
occams-1.0.0 lib/occams/routes/cms.rb