Sha256: b9f8abaf048ae0e0eb1d7650a96434da9583c0e66122fad597ba5341e4891a4f
Contents?: true
Size: 1.57 KB
Versions: 3
Compression:
Stored size: 1.57 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 get :form_blocks, :on => :member get :toggle_branch, :on => :member put :reorder, :on => :collection resources :revisions, :only => [:index, :show, :revert] do put :revert, :on => :member end end resources :files do put :reorder, :on => :collection end resources :layouts do post :reorder, :on => :collection resources :revisions, :only => [:index, :show, :revert] do put :revert, :on => :member end end resources :snippets do put :reorder, :on => :collection resources :revisions, :only => [:index, :show, :revert] do put :revert, :on => :member end end resources :categories get 'dialog/:type' => 'dialogs#show', :as => 'dialog' end end unless ComfortableMexicanSofa.config.admin_route_prefix.blank? scope :controller => :cms_content do get 'cms-css/:site_id/:identifier' => :render_css, :as => 'cms_css' get 'cms-js/:site_id/:identifier' => :render_js, :as => 'cms_js' get '(:cms_path)/sitemap' => :render_sitemap, :as => 'cms_sitemap', :constraints => {:format => /xml/}, :format => :xml get '/' => :render_html, :as => 'cms_html', :path => "(*cms_path)" end end if ComfortableMexicanSofa.config.use_default_routes
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
comfortable_mexican_sofa-1.6.14 | config/routes.rb |
comfortable_mexican_sofa-1.6.13 | config/routes.rb |
comfortable_mexican_sofa-1.6.12 | config/routes.rb |