Fix commits routing
This commit is contained in:
parent
2852d0b620
commit
651397513a
1 changed files with 1 additions and 2 deletions
|
@ -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/ }
|
||||
|
||||
|
|
Loading…
Reference in a new issue