Sha256: 9d09b129b34a87ddf3f5302c54e20e2d16be38eaea92fba454fc659bdcfe8a0f

Contents?: true

Size: 295 Bytes

Versions: 13

Compression:

Stored size: 295 Bytes

Contents

module SolidusNexio
  class WebhooksController < ActionController::API
    before_action :authorize_request

    def create
      Webhook.process(params[:eventType], params[:data])
      head 204
    end

    private

    def authorize_request
      headers['Nexio-signature']
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
solidus_nexio-0.4.5 app/controllers/solidus_nexio/webhooks_controller.rb
solidus_nexio-0.4.4 app/controllers/solidus_nexio/webhooks_controller.rb
solidus_nexio-0.4.3 app/controllers/solidus_nexio/webhooks_controller.rb
solidus_nexio-0.4.2 app/controllers/solidus_nexio/webhooks_controller.rb
solidus_nexio-0.4.1 app/controllers/solidus_nexio/webhooks_controller.rb
solidus_nexio-0.4.0 app/controllers/solidus_nexio/webhooks_controller.rb
solidus_nexio-0.3.5 app/controllers/solidus_nexio/webhooks_controller.rb
solidus_nexio-0.3.4 app/controllers/solidus_nexio/webhooks_controller.rb
solidus_nexio-0.3.3 app/controllers/solidus_nexio/webhooks_controller.rb
solidus_nexio-0.3.2 app/controllers/solidus_nexio/webhooks_controller.rb
solidus_nexio-0.3.0 app/controllers/solidus_nexio/webhooks_controller.rb
solidus_nexio-0.2.3 app/controllers/solidus_nexio/webhooks_controller.rb
solidus_nexio-0.2.2 app/controllers/solidus_nexio/webhooks_controller.rb