Class: Spree::Api::V2::Storefront::Account::OrdersController

Inherits:
BaseController
  • Object
show all
Includes:
CollectionOptionsHelpers
Defined in:
app/controllers/spree/api/v2/storefront/account/orders_controller.rb

Instance Method Summary collapse

Methods included from CollectionOptionsHelpers

#collection_links, #collection_meta, #collection_permitted_params

Methods inherited from BaseController

#content_type

Instance Method Details

#indexObject



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

#showObject



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