Sha256: 93ca5c12f140b63c86ac10036c5dbd613d373b16c5e6cb94eae0eb6166e450c9
Contents?: true
Size: 468 Bytes
Versions: 4
Compression:
Stored size: 468 Bytes
Contents
# frozen_string_literal: true module Emailbutler class WebhooksController < Emailbutler::ApplicationController skip_before_action :verify_authenticity_token def create ::Emailbutler::Webhooks::Receiver.call( user_agent: request.headers['HTTP_USER_AGENT'], payload: receiver_params.to_h ) head :ok end private def receiver_params params.permit('_json' => %w[smtp-id event timestamp]) end end end
Version data entries
4 entries across 4 versions & 1 rubygems