Sha256: 76b3ce488aea3351404718981512f9fd5f404812aed0e67c06fe122b9f67296e

Contents?: true

Size: 374 Bytes

Versions: 24

Compression:

Stored size: 374 Bytes

Contents

# frozen_string_literal: true

module ShopifyApp
  class WebhooksController < ActionController::Base
    include ShopifyApp::WebhookVerification

    def receive
      params.permit!

      ShopifyAPI::Webhooks::Registry.process(
        ShopifyAPI::Webhooks::Request.new(raw_body: request.raw_post, headers: request.headers.to_h),
      )
      head(:ok)
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
shopify_app-21.3.0 app/controllers/shopify_app/webhooks_controller.rb
shopify_app-21.2.0 app/controllers/shopify_app/webhooks_controller.rb
shopify_app-21.1.1 app/controllers/shopify_app/webhooks_controller.rb
shopify_app-21.1.0 app/controllers/shopify_app/webhooks_controller.rb