Commit 65139751 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix commits routing

parent 2852d0b6
...@@ -332,7 +332,7 @@ Gitlab::Application.routes.draw do ...@@ -332,7 +332,7 @@ Gitlab::Application.routes.draw do
get( get(
'/commits/*id', '/commits/*id',
to: 'commits#show', to: 'commits#show',
constraints: { id: /.+/, format: /(html|js)/ }, constraints: { id: /(?:[^.]|\.(?!atom$))+/, format: /atom/ },
as: :commits as: :commits
) )
end end
...@@ -342,7 +342,6 @@ Gitlab::Application.routes.draw do ...@@ -342,7 +342,6 @@ Gitlab::Application.routes.draw do
get :branches, on: :member get :branches, on: :member
end end
resources :commits, only: [:show], constraints: { id: /(?:[^.]|\.(?!atom$))+/, format: /atom/ }
resources :compare, only: [:index, :create] resources :compare, only: [:index, :create]
resources :network, only: [:show], constraints: { id: /(?:[^.]|\.(?!json$))+/, format: /json/ } resources :network, only: [:show], constraints: { id: /(?:[^.]|\.(?!json$))+/, format: /json/ }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment