Sha256: 4dd19f1fda34f4773af44f5192efb67321f73c2bfc8e964634494c509a0d9547
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 KB
Contents
Rails.application.routes.draw do namespace :tb_commerce, :path => '/' do namespace :admin do resources :orders do member do get :ship put :mark_shipped end end resources :transactions end end namespace :tb_commerce, :path => '/store' do namespace :api, :defaults => {:format => :json} do resources :products, :only => [:index, :show] do get :skus, :on => :member get :options, :on => :member end resources :cart_items, :only => [:create, :update, :destroy, :index] resources :transactions, :only => [:create] resources :orders, :only => [:create] resources :states, :only => :index end resource :cart, :only => :show resources :orders, :only => [:index, :show] get '/checkout' => 'checkout#new' get '/checkout/billing' => 'checkout#billing', :as => :checkout_billing get '/search' => 'products#search', :as => 'product_search' get '/:category_id' => 'products#index', :as => 'category_products' get '/:category_id/:id' => 'products#show', :as => 'category_product' get '/' => 'categories#index', :as => 'categories' get '/' => 'categories#index', :as => 'root' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tb_commerce-0.0.4 | config/routes.rb |
tb_commerce-0.0.3 | config/routes.rb |
tb_commerce-0.0.2 | config/routes.rb |