Commit 797a99c3fe6cdf6debf9282423f0e263e6577cfa
1 parent
fd6f3c06
Exists in
master
and in
1 other branch
fix the api route to work with both get and post
the JS can use either
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/routes.rb
... | ... | @@ -3,7 +3,7 @@ Errbit::Application.routes.draw do |
3 | 3 | devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" } |
4 | 4 | |
5 | 5 | # Hoptoad Notifier Routes |
6 | - post '/notifier_api/v2/notices' => 'notices#create' | |
6 | + match '/notifier_api/v2/notices' => 'notices#create', via: [:get, :post] | |
7 | 7 | get '/locate/:id' => 'notices#locate', :as => :locate |
8 | 8 | post '/deploys.txt' => 'deploys#create' |
9 | 9 | ... | ... |