summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-03-21 05:59:31 +0000
committerGo MAEDA <maeda@farend.jp>2020-03-21 05:59:31 +0000
commitab47fb8ae0e6685900e3a22de3b9ce265a5b05fa (patch)
tree22a50ddb755864b883f02833b03db48feb072691 /config/routes.rb
parent6abf527aa0e3271ebd38c1ac50a4691dab611b2e (diff)
downloadredmine-ab47fb8ae0e6685900e3a22de3b9ce265a5b05fa.tar.gz
redmine-ab47fb8ae0e6685900e3a22de3b9ce265a5b05fa.zip
Download all attachments at once (#7056).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19601 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 264532042..7e8cdeac9 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -289,6 +289,7 @@ Rails.application.routes.draw do
resources :attachments, :only => [:show, :update, :destroy]
get 'attachments/:object_type/:object_id/edit', :to => 'attachments#edit_all', :as => :object_attachments_edit
patch 'attachments/:object_type/:object_id', :to => 'attachments#update_all', :as => :object_attachments
+ get 'attachments/:object_type/:object_id/download', :to => 'attachments#download_all', :as => :object_attachments_download
resources :groups do
resources :memberships, :controller => 'principal_memberships'