summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb24
1 files changed, 14 insertions, 10 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 8eb9b4d27..4b9cc77aa 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -217,15 +217,16 @@ Rails.application.routes.draw do
get 'projects/:id/repository/:repository_id/statistics', :to => 'repositories#stats'
get 'projects/:id/repository/:repository_id/graph', :to => 'repositories#graph'
- get 'projects/:id/repository/:repository_id/changes(/*path(.:ext))',
- :to => 'repositories#changes'
+ get 'projects/:id/repository/:repository_id/changes(/*path)',
+ :to => 'repositories#changes',
+ :format => false
get 'projects/:id/repository/:repository_id/revisions/:rev', :to => 'repositories#revision'
get 'projects/:id/repository/:repository_id/revision', :to => 'repositories#revision'
post 'projects/:id/repository/:repository_id/revisions/:rev/issues', :to => 'repositories#add_related_issue'
delete 'projects/:id/repository/:repository_id/revisions/:rev/issues/:issue_id', :to => 'repositories#remove_related_issue'
get 'projects/:id/repository/:repository_id/revisions', :to => 'repositories#revisions'
- get 'projects/:id/repository/:repository_id/revisions/:rev/:action(/*path(.:ext))',
+ get 'projects/:id/repository/:repository_id/revisions/:rev/:action(/*path)',
:controller => 'repositories',
:format => false,
:constraints => {
@@ -236,27 +237,30 @@ Rails.application.routes.draw do
get 'projects/:id/repository/statistics', :to => 'repositories#stats'
get 'projects/:id/repository/graph', :to => 'repositories#graph'
- get 'projects/:id/repository/changes(/*path(.:ext))',
- :to => 'repositories#changes'
+ get 'projects/:id/repository/changes(/*path)',
+ :to => 'repositories#changes',
+ :format => false
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'
- get 'projects/:id/repository/revisions/:rev/:action(/*path(.:ext))',
+ get 'projects/:id/repository/revisions/:rev/:action(/*path)',
:controller => 'repositories',
:format => false,
:constraints => {
:action => /(browse|show|entry|raw|annotate|diff)/,
:rev => /[a-z0-9\.\-_]+/
}
- get 'projects/:id/repository/:repository_id/:action(/*path(.:ext))',
+ get 'projects/:id/repository/:repository_id/:action(/*path)',
:controller => 'repositories',
- :action => /(browse|show|entry|raw|changes|annotate|diff)/
- get 'projects/:id/repository/:action(/*path(.:ext))',
+ :action => /(browse|show|entry|raw|changes|annotate|diff)/,
+ :format => false
+ get 'projects/:id/repository/:action(/*path)',
:controller => 'repositories',
- :action => /(browse|show|entry|raw|changes|annotate|diff)/
+ :action => /(browse|show|entry|raw|changes|annotate|diff)/,
+ :format => false
get 'projects/:id/repository/:repository_id', :to => 'repositories#show', :path => nil
get 'projects/:id/repository', :to => 'repositories#show', :path => nil