Sha256: a042a4b6035ab21d6053c82623e61eb8817c507ea60c8559afc7f18bfa2fbe06
Contents?: true
Size: 565 Bytes
Versions: 14
Compression:
Stored size: 565 Bytes
Contents
module Spree module Api module V2 module Storefront class StoresController < ::Spree::Api::V2::BaseController def show render_serialized_payload { serialize_resource(resource) } end private def scope Spree::Store end def resource scope.find_by!(code: params[:code]) end def resource_serializer Spree::Api::Dependencies.storefront_store_serializer.constantize end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems