diff --git a/config/routes.rb b/config/routes.rb index 2534153758bd9d7fc1a8c4bf5ec994bf8c92ac94..9273499f196cb48c0a4c75b18c2fdc726393944c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -212,7 +212,8 @@ Gitlab::Application.routes.draw do end end - match "/compare/:from...:to" => "compare#show", as: "compare", via: [:get, :post], constraints: {from: /.+/, to: /.+/} + get '/compare/:from...:to' => 'compare#show', :as => 'compare', + :constraints => {from: /.+/, to: /.+/} resources :snippets, constraints: {id: /\d+/} do member do