Skip to content
Snippets Groups Projects
Commit 94cb695d authored by Arnaud Levy's avatar Arnaud Levy
Browse files

urls

parent 7628bdee
No related branches found
No related tags found
No related merge requests found
<div class="js-content-editor"
data-sort-url="<%= reorder_admin_communication_blocks_path %>">
data-sort-headings-url="<%= reorder_admin_communication_blocks_path %>">
data-sort-blocks-url="<%= reorder_admin_communication_headings_path %>">
<div class=" content-editor__elements
content-editor__elements__root
js-content-editor-sortable-container"
......
......@@ -60,7 +60,11 @@ namespace :communication do
end
resources :blocks, controller: 'blocks', except: [:index] do
collection do
resources :headings, controller: 'blocks/headings'
resources :headings, controller: 'blocks/headings' do
collection do
post :reorder
end
end
post :reorder
end
member do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment