diff options
author | skv <skv-headless@yandex.ru> | 2014-08-02 19:12:01 +0400 |
---|---|---|
committer | skv <skv-headless@yandex.ru> | 2014-08-14 15:48:14 +0400 |
commit | 4e4080016604e2c7ca9a5e75d6dd37d34b99cb09 (patch) | |
tree | 1a443fc6b7a16828c8a4b92d1724c2f72a4024f4 /config | |
parent | fdd8e4507527badd875a40a0ab8a3ed47a03c764 (diff) | |
download | gitlab-ce-4e4080016604e2c7ca9a5e75d6dd37d34b99cb09.tar.gz |
diff unfold
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
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 |