Module: Api::V1::Webhooks::Outgoing::Events::ControllerBase
- Extended by:
- ActiveSupport::Concern
- Included in:
- Api::V1::Webhooks::Outgoing::EventsController
- Defined in:
- app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.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
11 12 13 |
# File 'app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.rb', line 11 def index render json: @events.map(&:payload) end |
#show ⇒ Object
GET /api/v1/webhooks/outgoing/events/:id
16 17 18 |
# File 'app/controllers/concerns/api/v1/webhooks/outgoing/events/controller_base.rb', line 16 def show render json: @event.payload end |