Sha256: 07e37922b99ed14abcb927bff0d0ed1001f7d12f55d6c7a06e54b51ba1edf61d
Contents?: true
Size: 1.44 KB
Versions: 2
Compression:
Stored size: 1.44 KB
Contents
# Locomotive::Application.routes.draw do |map| Rails.application.routes.draw do |map| constraints(Locomotive::Routing::DefaultConstraint) do root :to => 'home#show' end # admin authentication devise_for :admin, :class_name => 'Account', :controllers => { :sessions => 'admin/sessions', :passwords => 'admin/passwords' } # admin interface for each website namespace 'admin' do root :to => 'pages#index' resources :pages do put :sort, :on => :member get :get_path, :on => :collection end resources :layouts do resources :page_parts, :only => :index end resources :snippets resources :site resource :current_site resources :accounts resource :my_account resources :memberships resources :theme_assets resources :asset_collections resources :assets, :path => 'asset_collections/:collection_id/assets' resources :content_types resources :contents, :path => 'content_types/:slug/contents' do put :sort, :on => :collection end resources :api_contents, :path => 'api/:slug/contents', :controller => 'api_contents', :only => [:create] resources :custom_fields, :path => 'custom/:parent/:slug/fields' end # sitemap match '/sitemap.xml' => 'admin/sitemaps#show', :format => 'xml' # magic urls match '/' => 'admin/rendering#show' match '*path' => 'admin/rendering#show' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
locomotive_cms-0.0.3.3 | config/routes.rb |
locomotive_cms-0.0.3.1 | config/routes.rb |