mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-04-02 08:21:57 -04:00
renamed controllers and updated routes
This commit is contained in:
@@ -14,18 +14,13 @@ get 'qbo/oauth_callback', to: 'qbo#oauth_callback'
|
||||
|
||||
#manual sync
|
||||
get 'qbo/sync', to: 'qbo#sync'
|
||||
get 'customers/sync', to: 'customers#sync'
|
||||
get 'employees/sync', to: 'employee#sync'
|
||||
get 'invoices/sync', to: 'invoice#sync'
|
||||
get 'estimates/sync', to: 'estimate#sync'
|
||||
|
||||
#webhook
|
||||
post 'qbo/webhook', to: 'qbo#webhook'
|
||||
|
||||
# Estimate & Invoice PDF
|
||||
get 'estimates/sync', to: 'estimate#sync'
|
||||
get 'estimates/doc/', to: 'estimate#doc', as: :estimate_doc
|
||||
get 'invoices/:id', to: 'invoice#show', as: :invoice
|
||||
get 'estimates/doc/', to: 'estimates#doc', as: :estimate_doc
|
||||
get 'invoices/:id', to: 'invoices#show', as: :invoice
|
||||
|
||||
#manual billing
|
||||
get 'bill/:id', to: 'qbo#bill', as: :bill
|
||||
@@ -42,3 +37,16 @@ resources :customers do
|
||||
get :autocomplete_customer_name, on: :collection
|
||||
get :sync
|
||||
end
|
||||
|
||||
resources :estimates do
|
||||
get :sync
|
||||
get :doc, as: :estimate_doc
|
||||
end
|
||||
|
||||
resources :employees do
|
||||
get :sync
|
||||
end
|
||||
|
||||
resources :invoices do
|
||||
get :sync
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user