spree_paypal_express/config/routes.rb

15 lines
460 B
Ruby
Raw Normal View History

# Put your extension routes here.
map.resources :orders do |order|
order.resource :checkout, :member => {:paypal_checkout => :any, :paypal_payment => :any, :paypal_confirm => :any, :paypal_finish => :any}
end
2010-01-22 16:29:55 +00:00
map.resources :paypal_express_callbacks, :only => [:index]
map.namespace :admin do |admin|
admin.resources :orders do |order|
2010-01-28 16:48:01 +00:00
order.resources :paypal_payments, :member => {:capture => :get, :refund => :any}, :has_many => [:txns]
end
end