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.10.0 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.9.0 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.8.5 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.8.4 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.8.3 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.8.2 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.8.1 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.8.0 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.7.23 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.7.22 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.7.21 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.7.20 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.7.19 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.7.18 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.7.17 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.7.16 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.7.15 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.7.14 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.7.13 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.7.12 app/controllers/api/v1/webhooks/outgoing/events_controller.rb