Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-28 23:15:09 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-28 23:15:09 +0300
commit3a678f758d75413e0377816e5de01d7fcd10f0e9 (patch)
tree7d636cae432edde0c79a63fff7f41120da9eb13b /config
parent25a42a56cf4da95e8725b988f2b940d8b293a952 (diff)
parent6d4076fdc674cd5f9002e908e082d6c1c9dd1b90 (diff)
Merge pull request #7989 from cirosantilli/match-compare-to-get
Disallow POST to compare as it does not create objects
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 1d571e21b88..9b99f0643a7 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -218,7 +218,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