summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-06-16 14:27:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-06-16 14:27:51 +0000
commit4137ba8e816c9e8c1782181e5bf1cb0d0ad09d75 (patch)
treed0e69f33679828abe1402d260a5c41938a9d44f8 /config/routes.rb
parent794a2a0180ed2d2801be4146ac59799747683b3d (diff)
downloadredmine-4137ba8e816c9e8c1782181e5bf1cb0d0ad09d75.tar.gz
redmine-4137ba8e816c9e8c1782181e5bf1cb0d0ad09d75.zip
Removes repository routes without repository_id (#26522).
git-svn-id: http://svn.redmine.org/redmine/trunk@17386 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/config/routes.rb b/config/routes.rb
index e5b25f904..8b8aa1311 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -253,21 +253,6 @@ Rails.application.routes.draw do
:constraints => {:rev => /[a-z0-9\.\-_]+/, :path => /.*/}
end
- get 'projects/:id/repository/statistics', :to => 'repositories#stats'
- get 'projects/:id/repository/graph', :to => 'repositories#graph'
-
- get 'projects/:id/repository/revisions', :to => 'repositories#revisions'
- get 'projects/:id/repository/revisions/:rev', :to => 'repositories#revision'
- get 'projects/:id/repository/revision', :to => 'repositories#revision'
- post 'projects/:id/repository/revisions/:rev/issues', :to => 'repositories#add_related_issue'
- delete 'projects/:id/repository/revisions/:rev/issues/:issue_id', :to => 'repositories#remove_related_issue'
- %w(browse show entry raw annotate diff).each do |action|
- get "projects/:id/repository/revisions/:rev/#{action}(/*path)",
- :controller => 'repositories',
- :action => action,
- :format => 'html',
- :constraints => {:rev => /[a-z0-9\.\-_]+/, :path => /.*/}
- end
%w(browse entry raw changes annotate diff).each do |action|
get "projects/:id/repository/:repository_id/#{action}(/*path)",
:controller => 'repositories',
@@ -275,16 +260,8 @@ Rails.application.routes.draw do
:format => 'html',
:constraints => {:path => /.*/}
end
- %w(browse entry raw changes annotate diff).each do |action|
- get "projects/:id/repository/#{action}(/*path)",
- :controller => 'repositories',
- :action => action,
- :format => 'html',
- :constraints => {:path => /.*/}
- end
get 'projects/:id/repository/:repository_id/show/*path', :to => 'repositories#show', :format => 'html', :constraints => {:path => /.*/}
- get 'projects/:id/repository/show/*path', :to => 'repositories#show', :format => 'html', :constraints => {:path => /.*/}
get 'projects/:id/repository/:repository_id', :to => 'repositories#show', :path => nil
get 'projects/:id/repository', :to => 'repositories#show', :path => nil