Sha256: 133dd4b76c29da81d498aadeaaf054db0d95aaaf77cf234a3200ead7ae83ad10

Contents?: true

Size: 459 Bytes

Versions: 122

Compression:

Stored size: 459 Bytes

Contents

class Api::V1::Webhooks::Outgoing::EventsController < Api::V1::ApplicationController
  account_load_and_authorize_resource :event,
    through: BulletTrain::OutgoingWebhooks.parent_association,
    through_association: :webhooks_outgoing_events

  # 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

122 entries across 122 versions & 1 rubygems

Version Path
bullet_train-outgoing_webhooks-1.6.25 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.24 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.23 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.22 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.21 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.20 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.19 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.18 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.17 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.16 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.15 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.14 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.13 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.12 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.11 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.10 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.9 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.8 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.7 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.6.6 app/controllers/api/v1/webhooks/outgoing/events_controller.rb