Sha256: 080152b08419025358f1314006b514fa52889eb4e90fa66de8e2f6f9951760c6
Contents?: true
Size: 868 Bytes
Versions: 1
Compression:
Stored size: 868 Bytes
Contents
Rails.application.routes.draw do namespace :cms_admin, :path => ComfortableMexicanSofa.config.admin_route_prefix, :except => :show do get '/' => redirect(ComfortableMexicanSofa.config.admin_route_redirect) resources :pages do member do match :form_blocks match :toggle_branch end collection do match :reorder end end resources :sites resources :layouts resources :snippets resources :uploads, :only => [:create, :destroy] end scope :controller => :cms_content do prefix = ComfortableMexicanSofa.config.content_route_prefix get "#{prefix}/cms-css/:id" => :render_css, :as => 'cms_css' get "#{prefix}/cms-js/:id" => :render_js, :as => 'cms_js' get "#{prefix}/" => :render_html, :as => 'cms_html', :path => "#{prefix}/(*cms_path)" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comfortable_mexican_sofa-1.1.2 | config/routes.rb |