Class: Api::V1::Webhooks::Outgoing::EventsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Api::V1::Webhooks::Outgoing::EventsController
- Defined in:
- app/controllers/api/v1/webhooks/outgoing/events_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET /api/v1/teams/:team_id/webhooks/outgoing/events.
-
#show ⇒ Object
GET /api/v1/webhooks/outgoing/events/:id.
Instance Method Details
#index ⇒ Object
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 |
#show ⇒ Object
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 |