Commit 9e4f3147a0f4b352ba243a03f76daade3dcee056

Authored by Nihad Abbasov
1 parent 74213534

specify HTTP verbs for match in routes

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
config/routes.rb
... ... @@ -184,7 +184,8 @@ Gitlab::Application.routes.draw do
184 184 resources :blame, only: [:show], constraints: {id: /.+/}
185 185 resources :blob, only: [:show], constraints: {id: /.+/}
186 186 resources :tree, only: [:show], constraints: {id: /.+/}
187   - match "/compare/:from...:to" => "compare#show", as: "compare", constraints: {from: /.+/, to: /.+/}
  187 + match "/compare/:from...:to" => "compare#show", as: "compare",
  188 + :via => [:get, :post], constraints: {from: /.+/, to: /.+/}
188 189  
189 190 resources :team, controller: 'team_members', only: [:index]
190 191 resources :team_members
... ...