config/routes.rb in refinerycms-pages-1.0.11 vs config/routes.rb in refinerycms-pages-2.0.0

- old
+ new

@@ -1,12 +1,17 @@ -::Refinery::Application.routes.draw do +Refinery::Core::Engine.routes.draw do + root :to => 'pages#home' + post 'pages/preview' => 'pages#preview', :as => :preview_pages + match 'pages/*path/preview' => 'pages#preview', :as => :preview_page, :via => [:get, :put] get '/pages/:id', :to => 'pages#show', :as => :page - scope(:path => 'refinery', :as => 'admin', :module => 'admin') do + namespace :admin, :path => 'refinery' do + get 'pages/*path/edit', :to => 'pages#edit' + get 'pages/*path/children', :to => 'pages#children', :as => 'children_pages' + put 'pages/*path', :to => 'pages#update' + delete 'pages/*path', :to => 'pages#destroy' resources :pages, :except => :show do - collection do - post :update_positions - end + post :update_positions, :on => :collection end resources :pages_dialogs, :only => [] do collection do get :link_to