Sha256: 69fa1e3116c5c3311c8e0a20b678088d45abcd3b095f2acecfd466f8d6ef2e08

Contents?: true

Size: 516 Bytes

Versions: 19

Compression:

Stored size: 516 Bytes

Contents

# frozen_string_literal: true

class HomeController < ApplicationController
  include ShopifyApp::EmbeddedApp
  include ShopifyApp::EnsureInstalled
  include ShopifyApp::ShopAccessScopesVerification

  def index
    if ShopifyAPI::Context.embedded? && (!params[:embedded].present? || params[:embedded] != "1")
      redirect_to(ShopifyAPI::Auth.embedded_app_url(params[:host]) + request.path, allow_other_host: true)
    else
      @shop_origin = current_shopify_domain
      @host = params[:host]
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
shopify_app-22.4.0 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-22.3.1 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-22.3.0 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-22.2.1 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-22.2.0 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-22.1.0 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-22.0.1 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-22.00.0 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-21.10.0 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-21.9.0 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-21.8.1 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-21.8.0 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-21.7.0 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-21.6.0 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-21.5.0 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-21.4.1 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-21.4.0 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-21.3.1 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb
shopify_app-21.3.0 lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb