Class: Spree::Api::V2::Storefront::ProductsController
Instance Method Summary
collapse
#collection_links, #collection_meta, #collection_permitted_params
#content_type
Instance Method Details
#index ⇒ Object
8
9
10
|
# File 'app/controllers/spree/api/v2/storefront/products_controller.rb', line 8
def index
render_serialized_payload { serialize_collection(paginated_collection) }
end
|
#show ⇒ Object
12
13
14
|
# File 'app/controllers/spree/api/v2/storefront/products_controller.rb', line 12
def show
render_serialized_payload { serialize_resource(resource) }
end
|