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