Class: Spree::Api::V1::ChannableController
- Inherits:
-
BaseController
- Object
- BaseController
- Spree::Api::V1::ChannableController
- Defined in:
- app/controllers/spree/api/v1/channable_controller.rb
Instance Method Summary collapse
Instance Method Details
#product_feed ⇒ Object
10 11 12 13 |
# File 'app/controllers/spree/api/v1/channable_controller.rb', line 10 def product_feed headers["Content-Type"] = 'application/atom+xml; charset=utf-8' render plain: Spree::Product.to_channable_product_xml(@products) end |
#variant_feed ⇒ Object
5 6 7 8 |
# File 'app/controllers/spree/api/v1/channable_controller.rb', line 5 def variant_feed headers["Content-Type"] = 'application/atom+xml; charset=utf-8' render plain: Spree::Product.to_channable_variant_xml(@products) end |