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
ruby_shopify_app-1.3.3 lib/generators/shopify_app/products_controller/templates/products_controller.rb
ruby_shopify_app-1.3.3 app/controllers/products_controller.rb
ruby_shopify_app-1.3.2 app/controllers/products_controller.rb
ruby_shopify_app-1.3.2 lib/generators/shopify_app/products_controller/templates/products_controller.rb
ruby_shopify_app-1.3.1 lib/generators/shopify_app/products_controller/templates/products_controller.rb
ruby_shopify_app-1.3.1 app/controllers/products_controller.rb
ruby_shopify_app-1.3.0 lib/generators/shopify_app/products_controller/templates/products_controller.rb
ruby_shopify_app-1.3.0 app/controllers/products_controller.rb
ruby_shopify_app-1.2.0 app/controllers/products_controller.rb
ruby_shopify_app-1.2.0 lib/generators/shopify_app/products_controller/templates/products_controller.rb
ruby_shopify_app-1.1.0 app/controllers/products_controller.rb
ruby_shopify_app-1.1.0 lib/generators/shopify_app/products_controller/templates/products_controller.rb
ruby_shopify_app-1.0.0 lib/generators/shopify_app/products_controller/templates/products_controller.rb
shopify_app-18.1.3 lib/generators/shopify_app/products_controller/templates/products_controller.rb
shopify_app-18.1.2 lib/generators/shopify_app/products_controller/templates/products_controller.rb
shopify_app-18.1.1 lib/generators/shopify_app/products_controller/templates/products_controller.rb
shopify_app-18.1.0 lib/generators/shopify_app/products_controller/templates/products_controller.rb
shopify_app-18.0.4 lib/generators/shopify_app/products_controller/templates/products_controller.rb
shopify_app-18.0.3 lib/generators/shopify_app/products_controller/templates/products_controller.rb
shopify_app-18.0.2 lib/generators/shopify_app/products_controller/templates/products_controller.rb