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
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-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