Sha256: 4d5ed51b62f9d32240f8d96946c119de17924a0984800f519bb81d069c7d9910

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

Rails.application.routes.draw do
  
  namespace :cms_admin, :path => LucyCms.config.admin_route_prefix, :except => :show do
    get '/' => redirect(LucyCms.config.admin_route_redirect)
    resources :pages do
      member do 
        match :form_blocks
        match :toggle_branch
      end
      collection do
        match :reorder
      end
    end
    resource :site do
      collection do
        get :setup
      end
    end
    resource :session
    resources :users do
      member do
        get  :change_password
        put :update_password
      end
    end
    resources :layouts
    resources :snippets
    resources :upload_dirs, :except => [:edit, :update] do
      collection do
        get :conflict
      end
      member do
        post :uploads
        delete :uploads_destroy
      end
    end
  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

2 entries across 2 versions & 1 rubygems

Version Path
lucy_cms-0.0.5 config/routes.rb
lucy_cms-0.0.4 config/routes.rb