Sha256: 27a32d83b1b44d0915b343ba02e32d413d5f1214648bc8162105b4c138d7cb45

Contents?: true

Size: 1.06 KB

Versions: 34

Compression:

Stored size: 1.06 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
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
piggybak-0.6.34 config/routes.rb
piggybak-0.6.33 config/routes.rb
piggybak-0.6.32 config/routes.rb
piggybak-0.6.31 config/routes.rb
piggybak-0.6.30 config/routes.rb
piggybak-0.6.29 config/routes.rb
piggybak-0.6.28 config/routes.rb
piggybak-0.6.27 config/routes.rb
piggybak-0.6.26 config/routes.rb
piggybak-0.6.25 config/routes.rb
piggybak-0.6.24 config/routes.rb
piggybak-0.6.23 config/routes.rb
piggybak-0.6.22 config/routes.rb
piggybak-0.6.21 config/routes.rb
piggybak-0.6.20 config/routes.rb
piggybak-0.6.19 config/routes.rb
piggybak-0.6.18 config/routes.rb
piggybak-0.6.17 config/routes.rb
piggybak-0.6.16 config/routes.rb
piggybak-0.6.15 config/routes.rb