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:
authorskv <skv-headless@yandex.ru>2014-08-02 19:12:01 +0400
committerskv <skv-headless@yandex.ru>2014-08-14 15:48:14 +0400
commit4e4080016604e2c7ca9a5e75d6dd37d34b99cb09 (patch)
tree1a443fc6b7a16828c8a4b92d1724c2f72a4024f4 /config
parentfdd8e4507527badd875a40a0ab8a3ed47a03c764 (diff)
diff unfold
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