lib/generator/lib/app.rb in shopify-sinatra-app-0.1.2 vs lib/generator/lib/app.rb in shopify-sinatra-app-0.1.3
- old
+ new
@@ -11,9 +11,10 @@
# this is a simple example that fetches some products
# from Shopify and displays them inside your app
get '/' do
shopify_session do
@products = ShopifyAPI::Product.find(:all, :params => {:limit => 10})
+ erb :home
end
end
# this endpoint recieves the uninstall webhook
# and cleans up data, add to this endpoint as your app