config/routes.rb in erp_invoicing-4.0.0 vs config/routes.rb in erp_invoicing-4.1.0
- old
+ new
@@ -1,13 +1,14 @@
-ErpInvoicing::Engine.routes.draw do
+Rails.application.routes.draw do
- match '/sms/receive_response' => "sms#receive_response"
+ namespace :api do
+ namespace :v1 do
- match '/erp_app/organizer/bill_pay/base(/:action)' => "erp_app/organizer/bill_pay/base#index"
- match '/erp_app/organizer/bill_pay/accounts(/:action)' => "erp_app/organizer/bill_pay/accounts#index"
+ resources :invoices, :defaults => {:format => 'json'}
- #shared
- match '/erp_app/shared/billing_accounts(/:action(/:id))' => "erp_app/shared/billing_accounts"
- match '/erp_app/shared/invoices(/:action(/:id))' => "erp_app/shared/invoices"
- match '/erp_app/shared/invoices/files/:invoice_id(/:action)' => "erp_app/shared/files"
-
+ end # v1
+ end # api
+
+end
+
+ErpInvoicing::Engine.routes.draw do
end
\ No newline at end of file