diff options
author | Go MAEDA <maeda@farend.jp> | 2021-06-24 13:55:06 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-06-24 13:55:06 +0000 |
commit | 890dc20ad749f1f9fa0fca41a2c23bb520be5008 (patch) | |
tree | d006c63efe13a46e1254359aa2208f392de860f3 /config/routes.rb | |
parent | f75756e870fb3ae5d0c793032472391bb573c9cd (diff) | |
download | redmine-890dc20ad749f1f9fa0fca41a2c23bb520be5008.tar.gz redmine-890dc20ad749f1f9fa0fca41a2c23bb520be5008.zip |
API to archive/unarchive projects (#35420).
Patch by Felix Schäfer.
git-svn-id: http://svn.redmine.org/redmine/trunk@21044 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index dbcd8ddc7..7e5e3eee9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -131,8 +131,8 @@ Rails.application.routes.draw do member do get 'settings(/:tab)', :action => 'settings', :as => 'settings' - post 'archive' - post 'unarchive' + match 'archive', :via => [:post, :put] + match 'unarchive', :via => [:post, :put] post 'close' post 'reopen' match 'copy', :via => [:get, :post] |