Skip to content

Commit

Permalink
Merge pull request #593 from errbit/rework_routes
Browse files Browse the repository at this point in the history
Use get/post instead of match on routes
  • Loading branch information
nashby committed Oct 19, 2013
2 parents ddf8c4b + f732443 commit e9326a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }

# Hoptoad Notifier Routes
match '/notifier_api/v2/notices' => 'notices#create'
match '/locate/:id' => 'notices#locate', :as => :locate
match '/deploys.txt' => 'deploys#create'
post '/notifier_api/v2/notices' => 'notices#create'
get '/locate/:id' => 'notices#locate', :as => :locate
post '/deploys.txt' => 'deploys#create'

resources :notices, :only => [:show]
resources :deploys, :only => [:show]
Expand Down

0 comments on commit e9326a9

Please sign in to comment.