From 60dced41dbb61a102c52a45c465e9f2d52dca290 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 28 Jul 2016 01:07:54 -0400 Subject: [PATCH] Webhook --- config/routes.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index 1ef8696..412b027 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -17,5 +17,8 @@ get 'qbo/oauth_callback', :to => 'qbo#oauth_callback' get 'qbo/sync', :to => 'qbo#sync' get 'qbo/estimate/:id', :to => 'estimate#show', as: :estimate get 'qbo/invoice/:id', :to => 'invoice#show', as: :invoice + +post 'qbo/webhook', :to => 'qbo#qbo_webhook' + resources :vehicles resources :customers