Commit 3a678f75 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #7989 from cirosantilli/match-compare-to-get

Disallow POST to compare as it does not create objects
parents 25a42a56 6d4076fd
...@@ -218,7 +218,8 @@ Gitlab::Application.routes.draw do ...@@ -218,7 +218,8 @@ Gitlab::Application.routes.draw do
end end
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 resources :snippets, constraints: {id: /\d+/} do
member do member do
......
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