Class: Api::V1::Webhooks::Outgoing::EventsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/api/v1/webhooks/outgoing/events_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

GET /api/v1/teams/:team_id/webhooks/outgoing/events



7
8
9
# File 'app/controllers/api/v1/webhooks/outgoing/events_controller.rb', line 7

def index
  render json: @events.map(&:payload)
end

#showObject

GET /api/v1/webhooks/outgoing/events/:id



12
13
14
# File 'app/controllers/api/v1/webhooks/outgoing/events_controller.rb', line 12

def show
  render json: @event.payload
end