summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNihad Abbasov <narkoz.2008@gmail.com>2012-10-05 05:22:01 -0700
committerNihad Abbasov <narkoz.2008@gmail.com>2012-10-05 07:23:57 -0700
commit9e4f3147a0f4b352ba243a03f76daade3dcee056 (patch)
treecdf06619cee3a1f2cfdc0a5a6e0a0ab0e6ee9806
parent74213534bc324886451c3f858409fc0d33eecc8c (diff)
downloadgitlab-ce-9e4f3147a0f4b352ba243a03f76daade3dcee056.tar.gz
specify HTTP verbs for match in routes
-rw-r--r--config/routes.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 060fbf16793..54b298c961f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -184,7 +184,8 @@ Gitlab::Application.routes.draw do
resources :blame, only: [:show], constraints: {id: /.+/}
resources :blob, only: [:show], constraints: {id: /.+/}
resources :tree, only: [:show], constraints: {id: /.+/}
- match "/compare/:from...:to" => "compare#show", as: "compare", constraints: {from: /.+/, to: /.+/}
+ match "/compare/:from...:to" => "compare#show", as: "compare",
+ :via => [:get, :post], constraints: {from: /.+/, to: /.+/}
resources :team, controller: 'team_members', only: [:index]
resources :team_members