Sha256: 1facfba81e1450ca4ce14a64333d5dbb4fb2123dbeee9b71643ebb8dd4ff2a9b

Contents?: true

Size: 1.22 KB

Versions: 33

Compression:

Stored size: 1.22 KB

Contents

Piggybak::Engine.routes.draw do
  scope :module => "piggybak" do
    # cart actions
    match "/cart" => "cart#show", :as => :cart
    match "/cart/add" => "cart#add", :via => :post, :as => :cart_add
    match "/cart/update" => "cart#update", :via => :post, :as => :cart_update
    match "/cart/remove/:item" => "cart#remove", :via => :delete, :as => :remove_item

    # order actions
    root :to => 'orders#submit', :as => :orders, :via => [:get, :post]
    match "/receipt" => "orders#receipt", :as => :receipt
    match "/orders/shipping" => "orders#shipping", :as => :orders_shipping
    match "/orders/tax" => "orders#tax", :as => :orders_tax
    match "/orders/geodata" => "orders#geodata", :as => :orders_geodata

    # list orders
    match "/orders" => "orders#list", :as => :orders_list

    # admin actions
    match "/admin/orders/:id/email" => "orders#email", :as => :email_order
    match "/admin/orders/:id/download" => "orders#download", :as => :download_order, :format => "txt"
    match "/admin/orders/:id/cancel" => "orders#cancel", :as => :cancel_order
    match "/admin/orders/:id/restore" => "orders#restore", :as => :restore_order
    match "/admin/payments/:id/refund" => "payments#refund", :as => :refund_payment
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
piggybak-0.5.5 config/routes.rb
piggybak-0.5.4 config/routes.rb
piggybak-0.5.3 config/routes.rb
piggybak-0.5.2 config/routes.rb
piggybak-0.5.1 config/routes.rb
piggybak-0.5.0 config/routes.rb
piggybak-0.4.39 config/routes.rb
piggybak-0.4.38 config/routes.rb
piggybak-0.4.37 config/routes.rb
piggybak-0.4.36 config/routes.rb
piggybak-0.4.35 config/routes.rb
piggybak-0.4.34 config/routes.rb
piggybak-0.4.33 config/routes.rb
piggybak-0.4.32 config/routes.rb
piggybak-0.4.31 config/routes.rb
piggybak-0.4.30 config/routes.rb
piggybak-0.4.29 config/routes.rb
piggybak-0.4.28 config/routes.rb
piggybak-0.4.27 config/routes.rb
piggybak-0.4.26 config/routes.rb