Sha256: 46d945a5d1bcc72f686047f8b765b9cb9376022e7fcd3c4844ffc952b5a41ab5

Contents?: true

Size: 1.64 KB

Versions: 16

Compression:

Stored size: 1.64 KB

Contents

Workarea::Api::Storefront::Engine.routes.draw do
  resource :account, except: [:new, :edit, :destroy]

  post 'analytics/category_view/:category_id', to: 'analytics#category_view', as: :analytics_category_view
  post 'analytics/product_view/:product_id', to: 'analytics#product_view', as: :analytics_product_view
  post 'analytics/search', to: 'analytics#search', as: :analytics_search
  post 'analytics/search_abandonment', to: 'analytics#search_abandonment', as: :analytics_search_abandonment
  post 'analytics/filters', to: 'analytics#filters', as: :analytics_filters

  resource :authentication_tokens, only: [:create, :update]
  resources :assets, only: :show
  resources :categories, only: [:index, :show]
  resources :contacts, only: :create
  resources :orders, only: [:index, :show]
  resources :pages, only: :show
  resource :recent_views, only: [:show, :update]
  resources :saved_addresses, except: [:new, :edit]
  resources :saved_credit_cards, except: [:new, :edit]
  resource :search, only: :show
  resources :searches, only: :index
  resources :system_content, only: :show
  resources :menus, only: [:index, :show]
  resource :email_signups, only: [:show, :create]
  resources :password_resets, only: :create
  resources :products, only: :show
  resource :recommendations, only: :show
  resources :taxons, only: :show

  resources :carts, only: [:index, :show, :create] do
    resources :items, only: [:create, :update, :destroy], controller: :cart_items
    member { post 'add_promo_code', as: :add_promo_code_to }
  end

  resources :checkouts, only: [:show, :update] do
    member do
      get 'start'
      get 'reset'
      post 'complete'
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
workarea-api-4.5.6 storefront/config/routes.rb
workarea-api-storefront-4.5.6 config/routes.rb
workarea-api-4.5.5 storefront/config/routes.rb
workarea-api-storefront-4.5.5 config/routes.rb
workarea-api-4.5.4 storefront/config/routes.rb
workarea-api-storefront-4.5.4 config/routes.rb
workarea-api-4.5.3 storefront/config/routes.rb
workarea-api-storefront-4.5.3 config/routes.rb
workarea-api-4.5.2 storefront/config/routes.rb
workarea-api-storefront-4.5.2 config/routes.rb
workarea-api-4.5.0 storefront/config/routes.rb
workarea-api-storefront-4.5.0 config/routes.rb
workarea-api-4.4.7 storefront/config/routes.rb
workarea-api-storefront-4.4.7 config/routes.rb
workarea-api-4.4.6 storefront/config/routes.rb
workarea-api-storefront-4.4.6 config/routes.rb