Sha256: ee93efadabb81841f04d8210ac49efa18b25b3bd6354901c07a8418c58a087e9
Contents?: true
Size: 1.18 KB
Versions: 23
Compression:
Stored size: 1.18 KB
Contents
Rails.application.routes.draw do namespace :cms_admin, :path => ComfortableMexicanSofa.config.admin_route_prefix, :except => :show do get '/', :to => 'base#jump' resources :sites do resources :pages do member do match :form_blocks match :toggle_branch end collection do match :reorder end resources :revisions, :only => [:index, :show, :revert] do put :revert, :on => :member end end resources :files resources :layouts do resources :revisions, :only => [:index, :show, :revert] do put :revert, :on => :member end end resources :snippets do resources :revisions, :only => [:index, :show, :revert] do put :revert, :on => :member end end resources :categories end end unless ComfortableMexicanSofa.config.admin_route_prefix.blank? scope :controller => :cms_content do get 'cms-css/:site_id/:layout_slug' => :render_css, :as => 'cms_css' get 'cms-js/:site_id/:layout_slug' => :render_js, :as => 'cms_js' get '/' => :render_html, :as => 'cms_html', :path => "(*cms_path)" end end
Version data entries
23 entries across 23 versions & 1 rubygems