diff --git a/config/routes.rb b/config/routes.rb index da4a1cd..1693c77 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -23,8 +23,9 @@ get 'qbo/estimate/:id', :to => 'estimate#show', as: :estimate get 'qbo/invoice/:id', :to => 'invoice#show', as: :invoice #payments -get 'qbo/payments', :to => 'payments#new' -post 'qbo/payments', :to => 'payments#create' +#get 'qbo/payments', :to => 'payments#new' +#post 'qbo/payments', :to => 'payments#create' +resources :payments #webhook post 'qbo/webhook', :to => 'qbo#qbo_webhook'