diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-07 20:48:26 +0200 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-07 20:48:39 +0200 |
commit | 6d4076fdc674cd5f9002e908e082d6c1c9dd1b90 (patch) | |
tree | 934107be65b82b63fc26ef1eb0773b05feb5229a /config | |
parent | bbc52b000008c9020d2a38dafc09ff3341a69cae (diff) | |
download | gitlab-ce-6d4076fdc674cd5f9002e908e082d6c1c9dd1b90.tar.gz |
Disallow POST to compare: does not create objects
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 2534153758b..9273499f196 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 |