config/routes.rb in refinerycms-pages-2.0.0 vs config/routes.rb in refinerycms-pages-2.0.1
- old
+ new
@@ -1,8 +1,8 @@
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]
+ root :to => 'pages#home', :via => :get
+ 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
namespace :admin, :path => 'refinery' do
get 'pages/*path/edit', :to => 'pages#edit'
get 'pages/*path/children', :to => 'pages#children', :as => 'children_pages'