Disallow POST to compare: does not create objects
This commit is contained in:
parent
bbc52b0000
commit
6d4076fdc6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue