Fix for incorrect routing to the Compare controller

5-0-stable
Yuri Feldman 2013-02-12 19:26:42 +11:00
parent 918e2213e7
commit 2d0c3e4c6d
1 changed files with 1 additions and 1 deletions

View File

@ -166,12 +166,12 @@ Gitlab::Application.routes.draw do
get "files"
end
resources :blob, only: [:show], constraints: {id: /.+/}
resources :tree, only: [:show, :edit, :update], constraints: {id: /.+/}
resources :commit, only: [:show], constraints: {id: /[[:alnum:]]{6,40}/}
resources :commits, only: [:show], constraints: {id: /.+/}
resources :compare, only: [:index, :create]
resources :blame, only: [:show], constraints: {id: /.+/}
resources :blob, only: [:show], constraints: {id: /.+/}
resources :graph, only: [:show], constraints: {id: /.+/}
match "/compare/:from...:to" => "compare#show", as: "compare",
:via => [:get, :post], constraints: {from: /.+/, to: /.+/}