Class: Spree::Api::V2::Storefront::Account::OrdersController
Instance Method Summary
collapse
#collection_links, #collection_meta, #collection_permitted_params
#content_type
Instance Method Details
#index ⇒ Object
10
11
12
|
# File 'app/controllers/spree/api/v2/storefront/account/orders_controller.rb', line 10
def index
render_serialized_payload { serialize_collection(paginated_collection) }
end
|
#show ⇒ Object
14
15
16
17
18
|
# File 'app/controllers/spree/api/v2/storefront/account/orders_controller.rb', line 14
def show
spree_authorize! :show, resource
render_serialized_payload { serialize_resource(resource) }
end
|