Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-08-15 10:34:12 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-08-15 10:34:12 +0400
commit7120af725148aae5092c0870c1da34ca5652f60d (patch)
tree42cd4c7f92d19b9e77bc86d6cae627d326c6dce7 /config
parent45da59daab5878eb20adc402fbd9c9f44407ed75 (diff)
parent4e4080016604e2c7ca9a5e75d6dd37d34b99cb09 (diff)
Merge pull request #7281 from skv-headless/diff-unfold
unfold commits
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 261fbb50e38..ce66ea99951 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -193,7 +193,9 @@ Gitlab::Application.routes.draw do
end
scope module: :projects do
- resources :blob, only: [:show, :destroy], constraints: {id: /.+/}
+ resources :blob, only: [:show, :destroy], constraints: { id: /.+/ } do
+ get :diff, on: :member
+ end
resources :raw, only: [:show], constraints: {id: /.+/}
resources :tree, only: [:show], constraints: {id: /.+/, format: /(html|js)/ }
resources :edit_tree, only: [:show, :update], constraints: { id: /.+/ }, path: 'edit' do