Sha256: 010b69411f8a1cdc8aa94fc79429ee2125b82ea63ad1a811f25720a258909d39

Contents?: true

Size: 1.18 KB

Versions: 19

Compression:

Stored size: 1.18 KB

Contents

# SHOPPING & E-ECOMMERCE - FRONT END
# ==================================

# Order routes
# ------------
# new & create: not used, orders are created automatically when user commences shopping.
# edit & update: refers to the contents of the order (the line items)
# checkout: let's the user view their order, make any changes as needed before paying

# Line item routes
# ----------------
# These belong to orders and are handled as additions or removals from orders, as such, they don't
# really need all of the standard views and actions.

resources :products, :only => [:index, :show] do
  collection do
    get :preview
  end
end

resources :addresses, :except => [:index, :show, :destroy]

resources :orders, :only => [:update] do
  member do
    delete 'remove_from_cart'
    get 'paid'
  end
  collection do
    post 'add_to_cart'
    get 'cancel', 'get_cart'
  end
end

match 'orders/checkout' => 'orders#checkout_get', :via => :get
match 'orders/checkout' => 'orders#checkout_post', :via => :post

get "integrated_payment/billing"
post "integrated_payment/pay"
get "hosted_payment/billing"
post "hosted_payment/notify"

# END SHOPPING & E-ECOMMERCE - FRONT END
# ======================================

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.1.9 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.1.8 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.1.7 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.1.6 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.1.5 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.1.4 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.1.3 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.1.2 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.1.1 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.1.0 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.0.18 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.0.17 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.0.16 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.0.15 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.0.14 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.0.13 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.0.12 lib/forge-cli/modules/ecommerce/routes.rb
forge-cli-0.0.11 lib/forge-cli/modules/ecommerce/routes.rb