Sha256: 5c808d274d9654c93b1367db458343ed338a972bbef5b453b8ac949d4e5310de

Contents?: true

Size: 492 Bytes

Versions: 14

Compression:

Stored size: 492 Bytes

Contents

module Api::V1::Webhooks::Outgoing::Events::ControllerBase
  extend ActiveSupport::Concern

  included do
    account_load_and_authorize_resource :event,
      through: BulletTrain::OutgoingWebhooks.parent_association,
      through_association: :webhooks_outgoing_events
  end

  # GET /api/v1/teams/:team_id/webhooks/outgoing/events
  def index
    render json: @events.map(&:payload)
  end

  # GET /api/v1/webhooks/outgoing/events/:id
  def show
    render json: @event.payload
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bullet_train-outgoing_webhooks-1.18.0 app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.rb
bullet_train-outgoing_webhooks-1.17.1 app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.rb
bullet_train-outgoing_webhooks-1.17.0 app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.rb
bullet_train-outgoing_webhooks-1.16.0 app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.rb
bullet_train-outgoing_webhooks-1.15.0 app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.rb
bullet_train-outgoing_webhooks-1.14.2 app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.rb
bullet_train-outgoing_webhooks-1.14.1 app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.rb
bullet_train-outgoing_webhooks-1.14.0 app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.rb
bullet_train-outgoing_webhooks-1.13.0 app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.rb
bullet_train-outgoing_webhooks-1.12.3 app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.rb
bullet_train-outgoing_webhooks-1.12.2 app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.rb
bullet_train-outgoing_webhooks-1.12.1 app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.rb
bullet_train-outgoing_webhooks-1.12.0 app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.rb
bullet_train-outgoing_webhooks-1.11.0 app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.rb