diff options
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb index a01456dba..be12e504e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -372,10 +372,17 @@ Rails.application.routes.draw do end end - match 'workflows', :controller => 'workflows', :action => 'index', :via => :get - match 'workflows/edit', :controller => 'workflows', :action => 'edit', :via => [:get, :post] - match 'workflows/permissions', :controller => 'workflows', :action => 'permissions', :via => [:get, :post] - match 'workflows/copy', :controller => 'workflows', :action => 'copy', :via => [:get, :post] + resources :workflows, only: [:index] do + collection do + get 'edit' + patch 'update' + get 'permissions' + patch 'update_permissions' + get 'copy' + post 'duplicate' + end + end + match 'settings', :controller => 'settings', :action => 'index', :via => :get match 'settings/edit', :controller => 'settings', :action => 'edit', :via => [:get, :post] match 'settings/plugin/:id', :controller => 'settings', :action => 'plugin', :via => [:get, :post], :as => 'plugin_settings' |