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

Version Path
comfortable_mexican_sofa-1.4.22 config/routes.rb
comfortable_mexican_sofa-1.4.21 config/routes.rb
comfortable_mexican_sofa-1.4.20 config/routes.rb
comfortable_mexican_sofa-1.4.19 config/routes.rb
comfortable_mexican_sofa-1.4.18 config/routes.rb
comfortable_mexican_sofa-1.4.17 config/routes.rb
comfortable_mexican_sofa-1.4.16 config/routes.rb
comfortable_mexican_sofa-1.4.15 config/routes.rb
comfortable_mexican_sofa-1.4.14 config/routes.rb
comfortable_mexican_sofa-1.4.13 config/routes.rb
comfortable_mexican_sofa-1.4.12 config/routes.rb
comfortable_mexican_sofa-1.4.11 config/routes.rb
comfortable_mexican_sofa-1.4.10 config/routes.rb
comfortable_mexican_sofa-1.4.9 config/routes.rb
comfortable_mexican_sofa-1.4.8 config/routes.rb
comfortable_mexican_sofa-1.4.7 config/routes.rb
comfortable_mexican_sofa-1.4.6 config/routes.rb
comfortable_mexican_sofa-1.4.5 config/routes.rb
comfortable_mexican_sofa-1.4.4 config/routes.rb
comfortable_mexican_sofa-1.4.3 config/routes.rb