Sha256: a2bb0f47b1b42745bb9143b55b9250ff7d41811627f256b40de5142c21a39a13
Contents?: true
Size: 564 Bytes
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
occams-1.0.1 | lib/occams/routes/cms.rb |