diff --git a/app/controllers/spree/api/v2/storefront/guest_line_items_controller.rb b/app/controllers/spree/api/v2/storefront/guest_line_items_controller.rb index bac2270d7..40d8db36c 100644 --- a/app/controllers/spree/api/v2/storefront/guest_line_items_controller.rb +++ b/app/controllers/spree/api/v2/storefront/guest_line_items_controller.rb @@ -23,6 +23,13 @@ def index render_serialized_payload { serialize_resource(guest_line_items) } end + + # override + def show + guest_line_item = spree_current_order.line_items.find(params['id']) + + render_serialized_payload { serialize_resource(guest_line_item) } + end end end end