Sha256: 9abeee2e42e65964b922127223cb1949b88d5945e0d5d040372c15fa985a6965
Contents?: true
Size: 1.62 KB
Versions: 2
Compression:
Stored size: 1.62 KB
Contents
Kaui::Engine.routes.draw do root :to => "home#index" resources :accounts, :only => [ :index, :show ] do member do get :payment_methods put :set_default_payment_method get :add_payment_method post :do_add_payment_method delete :delete_payment_method end end resources :account_timelines, :only => [ :index, :show ] do member do post :refunds, :as => "refunds" post :chargebacks, :as => "chargebacks" post :credits, :as => "credits" end end resources :chargebacks, :only => [ :show, :create, :new ] resources :credits, :only => [ :create, :new ] resources :external_payments, :only => [ :create, :new ] resources :payment_methods, :only => [ :show, :destroy ] resources :refunds, :only => [ :show, :create, :new ] resources :invoices, :only => [ :index, :show ] do member do get :show_html end end resources :bundles, :only => [ :index, :show ] do member do put :do_transfer get :transfer end end resources :subscriptions do member do put :reinstate end end scope "/account_tags" do match "/" => "account_tags#show", :via => :get, :as => "account_tags" match "/edit" => "account_tags#edit", :via => :get, :as => "edit_account_tags" match "/edit" => "account_tags#update", :via => :post, :as => "update_account_tags" end scope "/bundle_tags" do match "/" => "bundle_tags#show", :via => :get, :as => "bundle_tags" match "/edit" => "bundle_tags#edit", :via => :get, :as => "edit_bundle_tags" match "/edit" => "bundle_tags#update", :via => :post, :as => "update_bundle_tags" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kaui-0.1.0 | config/routes.rb |
kaui-0.0.9 | config/routes.rb |