Sha256: d2b7a4ee6e47df38fe235967b937a3ed18d4cd27dce7ae2f3db9ee31af85b13c

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

Rails.application.routes.draw do
  resources :suppliers
  resources :messages
  resources :deliveries

  namespace :admin do

    resources :suppliers do
      get 'feature'
      resources :taxons, :controller => "supplier_taxons" do
        member do
          get :select
          delete :remove
        end
        collection do
          post :available
          post :batch_select
          get  :selected
          post :update_taxons
        end
      end
    end
    match "upload_image" => "suppliers#upload_image"
    match "destroy_image" => "suppliers#destroy_image"
    match "make_logo" => "suppliers#make_logo"
    match "feature_image" => "suppliers#feature_image"

    resources :overview
    resources :pickups
    resources :pickup_locations
    resources :shipping_options

    resources :products do
      resources :suppliers, :member => {:select => :post, :remove => :post}, :collection => {:available => :post, :selected => :get}
      member do
        get :publish
        get :unpublish
      end
    end

    resources :orders do
      resources :suppliers, :collection => {:line_items => :get}
    end

    resources :vendor_overview
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_suppliers-0.0.1 config/routes.rb
spree_suppliers-0.60.3 config/routes.rb