Fix commits routing

This commit is contained in:
Dmitriy Zaporozhets 2015-03-20 13:01:43 -07:00
parent 2852d0b620
commit 651397513a

View file

@ -332,7 +332,7 @@ Gitlab::Application.routes.draw do
get(
'/commits/*id',
to: 'commits#show',
constraints: { id: /.+/, format: /(html|js)/ },
constraints: { id: /(?:[^.]|\.(?!atom$))+/, format: /atom/ },
as: :commits
)
end
@ -342,7 +342,6 @@ Gitlab::Application.routes.draw do
get :branches, on: :member
end
resources :commits, only: [:show], constraints: { id: /(?:[^.]|\.(?!atom$))+/, format: /atom/ }
resources :compare, only: [:index, :create]
resources :network, only: [:show], constraints: { id: /(?:[^.]|\.(?!json$))+/, format: /json/ }