Sha256: 0604a1d118dc5de0a9f4be54bee8fa89a91395a5f6e17ffdc132617d61a367fb
Contents?: true
Size: 365 Bytes
Versions: 4
Compression:
Stored size: 365 Bytes
Contents
class Spree::WebhooksController < Spree::Api::BaseController rescue_from(SolidusWebhooks::WebhookNotFound) { head :not_found } def receive webhook = Spree::Webhook.find(params[:id]) payload = request.request_parameters["webhook"] user = current_api_user authorize! :receive, webhook webhook.receive(payload, user) head :ok end end
Version data entries
4 entries across 4 versions & 1 rubygems