diff --git a/config/routes.rb b/config/routes.rb index 512066e5d4e9a6f1fae0b6e685d8475acdf3a59f..f0abd876ecda998d3d8b0efff67eb2a860a129f8 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/ }