summaryrefslogtreecommitdiff
path: root/engines/billing/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'engines/billing/config/routes.rb')
-rw-r--r--engines/billing/config/routes.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/billing/config/routes.rb b/engines/billing/config/routes.rb
index 444a837..229641f 100644
--- a/engines/billing/config/routes.rb
+++ b/engines/billing/config/routes.rb
@@ -7,17 +7,18 @@ Rails.application.routes.draw do
# resources :payments, :only => [:index]
# resources :subscriptions, :only => [:index, :destroy]
#end
+ resources :subscriptions, :only => [:index, :show] do
+ member do
+ post 'subscribe'
+ delete 'unsubscribe'
+ end
+ end
resources :customer, :only => [:new, :edit]
- resources :credit_card_info, :only => [:edit]
match 'customer/confirm/' => 'customer#confirm', :as => :confirm_customer
match 'customer/show/:id' => 'customer#show', :as => :show_customer
- match 'credit_card_info/confirm' => 'credit_card_info#confirm', :as => :confirm_credit_card_info
- resources :subscriptions, :only => [:new, :create, :update] # index, show & destroy are within users path
match 'billing_admin' => 'billing_admin#show', :as => :billing_admin
- match 'subscriptions/index' => 'subscriptions#index', :as => :index_subscription
- match 'subscriptions/show' => 'subscriptions#show', :as => :show_subscription
end
end