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.2.18 app/controllers/api/v1/webhooks/outgoing/events_controller.rb
bullet_train-outgoing_webhooks-1.2.17 app/controllers/api/v1/webhooks/outgoing/events_controller.rb