Sha256: abbe7e7889e81d713c1f305bd3201b2df3ba492b7ad0dddb5a3ce93962afea17

Contents?: true

Size: 1.17 KB

Versions: 2

Compression:

Stored size: 1.17 KB

Contents

Refinery::Application.routes.draw do
  #match '/admin(/*path)' => 'admin/base#error_404'
  #match '/admin' => 'admin/dashboard#index'
  get 'admin', :to => 'admin/dashboard#index', :as => :refinery_root
  get 'admin', :to => 'admin/dashboard#index', :as => :user_root
  
  scope :except => :show do
    namespace :admin do
      
      # refinerycms-pages
      resources :pages do
        post :update_positions, :on => :collection
      end
      
      resources :pages_dialogs, :only => [] do
        collection do
          get :link_to
          get :test_url
          get :test_email
        end
      end

      resources :page_parts, :only => [:new, :create, :destroy]
      
      # refinerycms-images
      resources :images
      
      # refinerycms-authentication
      resources :users
      
      # refinerycms-resources
      resources :resources
      
      # refinerycms-settings
      resources :settings,
                :except => :show,
                :as => :refinery_settings,
                :controller => :refinery_settings
                
      # refinerycms-dashboard
      root :to => 'dashboard#index'
      resources :dialogs, :only => :show
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
moxify-0.1.5 config/routes.rb
moxify-0.1.3 config/routes.rb