Sha256: eb623fdb167dcbf07185fa99deb0b080c0dd25e0e85172b2f90a29c48da0c6c3

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

Spree::Core::Engine.routes.draw do
  # Add your extension routes here
  namespace :admin do
    resources :favorite_products, only: :index do
      get :users, on: :member, to: 'products#favorite_users'
    end

    resources :products do
      get :favorite_users, on: :member
    end

    resources :users do
      get :favorite_products, on: :member
    end
  end

  resources :favorite_products, only: [:index, :create, :destroy]
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_favorite_products-2.1.1 config/routes.rb