# These routes make up what will be found under /cms # There are other routes that will be added at the root of the site (i.e. /) which can # be found in lib/cms/route_extensions.rb Cms::Engine.routes.draw do match '/dashboard', :to=>"dashboard#index", :as=>'dashboard' match '/', :to => 'home#index', :as=>'home' match '/sitemap', :to=>"section_nodes#index", :as=>'sitemap' match '/content_library', :to=>"html_blocks#index", :as=>'content_library' match '/administration', :to=>"users#index", :as=>'administration' match '/logout', :to=>"sessions#destroy", :as=>'logout' get '/login', :to=>"sessions#new", :as=>'login' post '/login', :to=>"sessions#create" match '/toolbar', :to=>"toolbar#index", :as=>'toolbar' match '/content_types', :to=>"content_types#index", :as=>'content_types' resources :connectors do member do put :move_up put :move_down put :move_to_bottom put :move_to_top end end resources :links resources :pages do member do put :archive put :hide put :publish get :versions end collection do put :publish end resources :tasks end get '/pages/:id/version/:version', :to=>'pages#version', :as=>'version_cms_page' put '/pages/:id/revert_to/:version', :to=>'pages#revert_to', :as=>'revert_page' resources :tasks do member do put :complete end collection do put :complete end end resources :sections do resources :links, :pages end resources :section_nodes do member do put :move_before put :move_after put :move_to_beginning put :move_to_end put :move_to_root end end resources :attachments, :only=>[:show, :create, :destroy] match '/content_library', :to=>'html_blocks#index', :as=>'content_library' content_blocks :html_blocks content_blocks :portlets post '/portlet/:id/:handler', :to=>"portlet#execute_handler", :as=>"portlet_handler" content_blocks :file_blocks content_blocks :image_blocks content_blocks :category_types content_blocks :categories content_blocks :tags match '/administration', :to => 'users#index', :as=>'administration' resources :users do member do get :change_password put :update_password put :disable put :enable end end resources :email_messages resources :groups resources :redirects resources :page_partials, :controller => 'dynamic_views' resources :page_templates, :controller => 'dynamic_views' resources :page_routes do resources :conditions, :controller => "page_route_conditions" resources :requirements, :controller => "page_route_requirements" end get 'cache', :to=>'cache#show', :as=>'cache' delete 'cache', :to=>'cache#destroy' match "/routes", :to => "routes#index", :as=>'routes' end