Class: HomeController

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

Instance Method Summary collapse

Methods included from ShopifyApp::LoginProtection

#login_again_if_different_shop, #shop_session, #shopify_session

Instance Method Details

#indexObject


2
3
4
5
# File 'lib/generators/shopify_app/home_controller/templates/home_controller.rb', line 2

def index
  @products = ShopifyAPI::Product.find(:all, params: { limit: 10 })
  @webhooks = ShopifyAPI::Webhook.find(:all)
end