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