Class: HomeController

Inherits:
ApplicationController
  • Object
show all
Includes:
ShopifyApp::EmbeddedApp, ShopifyApp::EnsureInstalled, ShopifyApp::ShopAccessScopesVerification
Defined in:
lib/generators/shopify_app/home_controller/templates/home_controller.rb,
lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb

Instance Method Summary collapse

Methods included from ShopifyApp::EnsureInstalled

#current_shopify_domain, #installed_shop_session

Methods included from ShopifyApp::RedirectForEmbedded

add_app_bridge_redirect_url_header

Instance Method Details

#indexObject



8
9
10
11
# File 'lib/generators/shopify_app/home_controller/templates/home_controller.rb', line 8

def index
  @products = ShopifyAPI::Product.all(limit: 10)
  @webhooks = ShopifyAPI::Webhook.all
end