Sha256: 07e84d7a6e4e4de20684dcb084f26666adb9950664bd9c68e456d04a20f80f6f

Contents?: true

Size: 988 Bytes

Versions: 4

Compression:

Stored size: 988 Bytes

Contents

Tienda::Engine.routes.draw do

  resources :product_categories
  resources :products do
    resources :variants
    collection do
      get :import
      post :import
    end
  end
  resources :orders do
    post :search, on: :collection
    member do
      post :accept
      post :reject
      post :ship
      get :despatch_note
    end
    resources :payments, only: [:create, :destroy] do
      match :refund, on: :member, via: [:get, :post]
    end
  end
  resources :stock_level_adjustments, only: [:index, :create]
  resources :delivery_services do
    resources :delivery_service_prices
  end
  resources :tax_rates
  resources :users
  resources :countries
  resources :attachments, only: :destroy

  get 'settings' => 'settings#edit'
  post 'settings' => 'settings#update'

  get 'login' => 'sessions#new'
  post 'login' => 'sessions#create'
  match 'login/reset' => 'sessions#reset', via: [:get, :post]
  delete 'logout' => 'sessions#destroy'

  root to: 'dashboard#home'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tienda-2.1.3 config/routes.rb
tienda-2.1.2 config/routes.rb
tienda-2.1.1 config/routes.rb
tienda-2.1.0 config/routes.rb