Class: ProductsController

Inherits:
AuthenticatedController show all
Defined in:
lib/generators/shopify_app/products_controller/templates/products_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



4
5
6
7
# File 'lib/generators/shopify_app/products_controller/templates/products_controller.rb', line 4

def index
  @products = ShopifyAPI::Product.all(limit: 10)
  render(json: { products: @products })
end