config/routes.rb in cas-cms-0.1.0 vs config/routes.rb in cas-cms-0.1.1
- old
+ new
@@ -12,20 +12,22 @@
class_name: "Cas::User",
module: :devise,
controllers: { sessions: "cas/devise/sessions" },
skip: :registrations
- resources :users, controller: 'users'
+ resources :sites, only: [:index] do
+ resources :users, controller: 'sites/users'
- resources :sections, only: [:index] do
- resources :contents, controller: 'sections/contents'
- resources :categories, controller: 'sections/categories'
+ resources :sections, only: [:index], controller: 'sites/sections' do
+ resources :contents, controller: 'sites/sections/contents'
+ resources :categories, controller: 'sites/sections/categories'
+ end
end
# used by tinymce editor
resources :file_uploads, only: :create
namespace :api, module: "api" do
resources :files, only: [:create, :destroy]
end
- root 'sections#index'
+ root 'sites/sections#index'
end