Sha256: bcefcd84a857b09a32dcc5c12f6a08c842941da5604c59c2fe9946bf673e8f77

Contents?: true

Size: 767 Bytes

Versions: 15

Compression:

Stored size: 767 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
    get '/cms-css/:id'  => :render_css,   :as => 'cms_css'
    get '/cms-js/:id'   => :render_js,    :as => 'cms_js'
    get '/'             => :render_html,  :as => 'cms_html',  :path => '(*cms_path)'
  end
  
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.1.1 config/routes.rb
comfortable_mexican_sofa-1.0.51 config/routes.rb
comfortable_mexican_sofa-1.0.50 config/routes.rb
comfortable_mexican_sofa-1.0.49 config/routes.rb
comfortable_mexican_sofa-1.0.48 config/routes.rb
comfortable_mexican_sofa-1.0.47 config/routes.rb
comfortable_mexican_sofa-1.0.46 config/routes.rb
comfortable_mexican_sofa-1.0.45 config/routes.rb
comfortable_mexican_sofa-1.0.44 config/routes.rb
comfortable_mexican_sofa-1.0.43 config/routes.rb
comfortable_mexican_sofa-1.0.42 config/routes.rb
comfortable_mexican_sofa-1.0.41 config/routes.rb
comfortable_mexican_sofa-1.0.40 config/routes.rb
comfortable_mexican_sofa-1.0.39 config/routes.rb
comfortable_mexican_sofa-1.0.38 config/routes.rb