give some love to the waiter app
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class Waiter::ProductCategoriesController < Waiter::ApplicationController
|
||||
|
||||
def index
|
||||
records = current_supplier.product_categories.include_relation(product: :product_variants)
|
||||
render json: records, each_serializer: Waiter::ProductCategorySerializer, include: %w[products]
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user