Commit f732443a1c3b25179263eb76f56f3d9e791fb6be
1 parent
ef9dfa7c
Exists in
master
and in
1 other branch
Use get/post instead of match on routes
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
config/routes.rb
| ... | ... | @@ -3,9 +3,9 @@ Errbit::Application.routes.draw do |
| 3 | 3 | devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" } |
| 4 | 4 | |
| 5 | 5 | # Hoptoad Notifier Routes |
| 6 | - match '/notifier_api/v2/notices' => 'notices#create' | |
| 7 | - match '/locate/:id' => 'notices#locate', :as => :locate | |
| 8 | - match '/deploys.txt' => 'deploys#create' | |
| 6 | + post '/notifier_api/v2/notices' => 'notices#create' | |
| 7 | + get '/locate/:id' => 'notices#locate', :as => :locate | |
| 8 | + post '/deploys.txt' => 'deploys#create' | |
| 9 | 9 | |
| 10 | 10 | resources :notices, :only => [:show] |
| 11 | 11 | resources :deploys, :only => [:show] | ... | ... |