diff options
author | Valery Sizov <valery@gitlab.com> | 2015-02-03 20:22:56 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-02-03 20:22:56 +0300 |
commit | c8782e1a402f187573562ce8af9068898fd01673 (patch) | |
tree | 0abd5ce7906eebee624c5ba24b94d9c18173caaa /config | |
parent | b9d9ac82a9d650b659866ea26dcb4e7987f10381 (diff) |
code folding
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index 512066e5d4e..f0abd876ecd 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -229,11 +229,11 @@ Gitlab::Application.routes.draw do resources :tree, only: [:show], constraints: { id: /.+/, format: /(html|js)/ } resource :avatar, only: [:show, :destroy] - resources :commit, only: [:show], constraints: {id: /[[:alnum:]]{6,40}/} do + resources :commit, only: [:show], constraints: { id: /[[:alnum:]]{6,40}/ } do get :branches, on: :member end - resources :commits, only: [:show], constraints: {id: /(?:[^.]|\.(?!atom$))+/, format: /atom/} + resources :commits, only: [:show], constraints: { id: /(?:[^.]|\.(?!atom$))+/, format: /atom/ } resources :compare, only: [:index, :create] resources :blame, only: [:show], constraints: { id: /.+/ } resources :network, only: [:show], constraints: { id: /(?:[^.]|\.(?!json$))+/, format: /json/ } |