Class: Spree::Api::V3::Store::DataFeedsController

Inherits:
Store::BaseController
  • Object
show all
Defined in:
app/controllers/spree/api/v3/store/data_feeds_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject

GET /api/v3/store/feeds/:slug.xml



10
11
12
13
14
15
# File 'app/controllers/spree/api/v3/store/data_feeds_controller.rb', line 10

def show
  data_feed = current_store.data_feeds.active.find_by!(slug: params[:slug])
  presenter = data_feed.class.presenter_class.new(data_feed)

  render xml: presenter.call
end