Sha256: 583ece2acb9fddaf69cbbb43ad29fd6542c99c18b0140b4908253fdf4a34a66a
Contents?: true
Size: 1.09 KB
Versions: 5
Compression:
Stored size: 1.09 KB
Contents
Tang::Engine.routes.draw do mount StripeEvent::Engine, at: '/stripe_event' namespace :admin do get :dashboard, to: 'dashboard#index' resources :customers, only: [:index, :show, :edit, :update, :destroy] do get :coupon put :coupon, to: 'customers#apply_coupon' delete :coupon, to: 'customers#remove_coupon' end resources :payments, only: [:index, :show] resources :subscriptions, only: [:index, :show, :edit, :update, :destroy] do get :coupon put :coupon, to: 'subscriptions#apply_coupon' delete :coupon, to: 'subscriptions#remove_coupon' end resources :plans resources :coupons, only: [:index, :show, :new, :create, :destroy] resources :invoices, only: [:show] get :search, to: 'search#index' root to: 'dashboard#index' end namespace :account do resource :subscription resource :card, only: [:show, :new, :create, :update, :destroy] resource :coupon, only: [:create, :destroy] resources :receipts, only: [:index] end # get 'pricing', to: 'plans#index' # get 'unauthorized', to: 'errors#unauthorized' end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
tang-0.2.2 | config/routes.rb |
tang-0.2.1 | config/routes.rb |
tang-0.2.0 | config/routes.rb |
tang-0.1.0 | config/routes.rb |
tang-0.0.9 | config/routes.rb |