Class: Spree::Api::V2::Storefront::Account::CreditCardsController

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

Instance Method Summary collapse

Methods inherited from BaseController

#content_type

Instance Method Details

#indexObject



9
10
11
# File 'app/controllers/spree/api/v2/storefront/account/credit_cards_controller.rb', line 9

def index
  render_serialized_payload { serialize_collection(resource) }
end

#showObject



13
14
15
# File 'app/controllers/spree/api/v2/storefront/account/credit_cards_controller.rb', line 13

def show
  render_serialized_payload { serialize_resource(resource) }
end