Commit e9326a9ceeceea8739518e08dc84487d6d99ed61
Exists in
master
and in
1 other branch
Merge pull request #593 from errbit/rework_routes
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] | ... | ... |