Sha256: 0346a4c51221fdd5ecc57bb6f13a32dafa70d07e51e8506c6acebd4a7302173e

Contents?: true

Size: 216 Bytes

Versions: 45

Compression:

Stored size: 216 Bytes

Contents

# frozen_string_literal: true

class ProductsController < AuthenticatedController
  def index
    @products = ShopifyAPI::Product.find(:all, params: { limit: 10 })
    render(json: { products: @products })
  end
end

Version data entries

45 entries across 39 versions & 2 rubygems

Version Path
shopify_app-14.4.0 lib/generators/shopify_app/products_controller/templates/products_controller.rb
shopify_app-14.3.0 lib/generators/shopify_app/products_controller/templates/products_controller.rb
shopify_app-14.2.0 lib/generators/shopify_app/products_controller/templates/products_controller.rb
shopify_app-14.1.0 lib/generators/shopify_app/products_controller/templates/products_controller.rb
shopify_app-14.0.0 lib/generators/shopify_app/products_controller/templates/products_controller.rb