Files
openfoodnetwork/engines/dfc_provider/config/routes.rb
2025-12-10 16:24:53 +11:00

22 lines
799 B
Ruby

# frozen_string_literal: true
DfcProvider::Engine.routes.draw do
resources :addresses, only: [:show]
resources :enterprises, only: [:index, :show] do
resources :catalog_items, only: [:index, :show, :update]
resources :offers, only: [:show, :update]
resources :platforms, only: [:index, :show, :update]
resources :supplied_products, only: [:create, :show, :update]
resources :social_medias, only: [:show]
end
resources :enterprise_groups, only: [:index, :show] do
resources :affiliated_by, only: [:create, :destroy], module: 'enterprise_groups'
end
resources :events, only: [:create]
resources :persons, only: [:show]
resources :supplied_products, only: [:index]
resources :product_groups, only: [:show]
resource :affiliate_sales_data, only: [:show]
end