summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-04-13 09:01:44 +0000
committerGo MAEDA <maeda@farend.jp>2021-04-13 09:01:44 +0000
commitf2b17f77943959ea2a415f239ff50e2758c49859 (patch)
tree9bd47fb9865b780ab0959eb7693466527173d8dc /config/routes.rb
parent6c5a16daf858149933e161595cf98534ea2e445b (diff)
downloadredmine-f2b17f77943959ea2a415f239ff50e2758c49859.tar.gz
redmine-f2b17f77943959ea2a415f239ff50e2758c49859.zip
Clean-up workflows controller (#33337).
Patch by Vincent Robert and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20941 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb15
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'