mirror of
https://github.com/redmine/redmine.git
synced 2024-09-13 15:45:44 +02:00
route: code layout clean up attachments route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8378 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
78904346ca
commit
adfb4f4b4c
@ -224,9 +224,15 @@ ActionController::Routing::Routes.draw do |map|
|
|||||||
|
|
||||||
map.resources :attachments, :only => [:show, :destroy]
|
map.resources :attachments, :only => [:show, :destroy]
|
||||||
# additional routes for having the file name at the end of url
|
# additional routes for having the file name at the end of url
|
||||||
map.connect 'attachments/:id/:filename', :controller => 'attachments', :action => 'show', :id => /\d+/, :filename => /.*/, :conditions => {:method => :get}
|
map.connect 'attachments/:id/:filename', :controller => 'attachments',
|
||||||
map.connect 'attachments/download/:id/:filename', :controller => 'attachments', :action => 'download', :id => /\d+/, :filename => /.*/, :conditions => {:method => :get}
|
:action => 'show', :id => /\d+/, :filename => /.*/,
|
||||||
map.connect 'attachments/download/:id', :controller => 'attachments', :action => 'download', :id => /\d+/, :conditions => {:method => :get}
|
:conditions => {:method => :get}
|
||||||
|
map.connect 'attachments/download/:id/:filename', :controller => 'attachments',
|
||||||
|
:action => 'download', :id => /\d+/, :filename => /.*/,
|
||||||
|
:conditions => {:method => :get}
|
||||||
|
map.connect 'attachments/download/:id', :controller => 'attachments',
|
||||||
|
:action => 'download', :id => /\d+/,
|
||||||
|
:conditions => {:method => :get}
|
||||||
|
|
||||||
map.resources :groups, :member => {:autocomplete_for_user => :get}
|
map.resources :groups, :member => {:autocomplete_for_user => :get}
|
||||||
map.group_users 'groups/:id/users', :controller => 'groups', :action => 'add_users', :id => /\d+/, :conditions => {:method => :post}
|
map.group_users 'groups/:id/users', :controller => 'groups', :action => 'add_users', :id => /\d+/, :conditions => {:method => :post}
|
||||||
|
Loading…
Reference in New Issue
Block a user