Sha256: ba390282a636cd4a82e8df373cd73c48fcfb3a10758db58066379a32cb51a6b9

Contents?: true

Size: 579 Bytes

Versions: 17

Compression:

Stored size: 579 Bytes

Contents

# frozen_string_literal: true

class ActionDispatch::Routing::Mapper

  def comfy_route_cms(options = {})
    ComfortableMexicanSofa.configuration.public_cms_path = options[:path]

    scope module: :comfy, as: :comfy 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

17 entries across 17 versions & 6 rubygems

Version Path
comfortable_mexican_sofa-2.0.19 lib/comfortable_mexican_sofa/routes/cms.rb
PixelForce_ETS-0.0.2 lib/comfortable_mexican_sofa/routes/cms.rb
PixelForce_ETS-0.0.1 lib/comfortable_mexican_sofa/routes/cms.rb
kcyEtsTest2-0.0.4 lib/comfortable_mexican_sofa/routes/cms.rb
kcyEtsTest2-0.0.3 lib/comfortable_mexican_sofa/routes/cms.rb
kcyEtsTest2-0.0.2 lib/comfortable_mexican_sofa/routes/cms.rb
kcyEtsTest2-0.0.1 lib/comfortable_mexican_sofa/routes/cms.rb
kcyEtsTest-0.0.1 lib/comfortable_mexican_sofa/routes/cms.rb
kcyEtsTest-2.2.19 lib/comfortable_mexican_sofa/routes/cms.rb
ComfortableMexicanSofa-2.0.18 lib/comfortable_mexican_sofa/routes/cms.rb
kcy1-1.0 lib/comfortable_mexican_sofa/routes/cms.rb
comfortable_mexican_sofa-2.0.18 lib/comfortable_mexican_sofa/routes/cms.rb
comfortable_mexican_sofa-2.0.17 lib/comfortable_mexican_sofa/routes/cms.rb
comfortable_mexican_sofa-2.0.16 lib/comfortable_mexican_sofa/routes/cms.rb
comfortable_mexican_sofa-2.0.15 lib/comfortable_mexican_sofa/routes/cms.rb
comfortable_mexican_sofa-2.0.14 lib/comfortable_mexican_sofa/routes/cms.rb
comfortable_mexican_sofa-2.0.13 lib/comfortable_mexican_sofa/routes/cms.rb