config/routes.rb in dm_cms-4.2.2.1 vs config/routes.rb in dm_cms-4.2.2.2
- old
+ new
@@ -5,15 +5,17 @@
patch '/cms_pages/expire_cache_total', controller: 'cms_pages', action: :expire_cache_total, as: :expire_cache
post '/cms_pages/ajax_sort', controller: 'cms_pages', action: :ajax_sort, as: :cms_page_sort
get '/dashboard/widget_blog_comments(/:comment_day)', controller: 'dashboard', action: :widget_blog_comments, as: :widget_blog_comments
resources :cms_pages do
member do
- get :new_page
- post :create_page
- put :duplicate_page
- post :file_tree
- get :file_tree
+ get :new_page
+ post :create_page
+ put :duplicate_page
+ post :file_tree
+ get :file_tree
+ match 'permissions', action: 'permissions', via: [:get, :post, :patch]
+ patch 'ajax_toggle_permission/:user_id/:role', action: 'ajax_toggle_permission', as: 'ajax_toggle_permission'
end
end
resources :cms_contentitems do
member do
@@ -29,9 +31,11 @@
resources :cms_blogs do
member do
get 'blog_users', action: :blog_users, as: :blog_users
match 'blog_add_member', action: :blog_add_member, as: :blog_add_member, via: [:get, :post]
delete 'blog_delete_member', action: :blog_delete_member, as: :blog_delete_member
+ match 'permissions', action: 'permissions', via: [:get, :post, :patch]
+ patch 'ajax_toggle_permission/:user_id/:role', action: 'ajax_toggle_permission', as: 'ajax_toggle_permission'
end
resources :cms_posts do
member do
put 'send_notifications_emails', action: :send_notifications_emails, as: :send_notifications_emails
end