Class: Machina::WebhooksController
- Inherits:
-
ActionController::API
- Object
- ActionController::API
- Machina::WebhooksController
- Defined in:
- app/controllers/machina/webhooks_controller.rb
Overview
Receives incoming webhook events from the Machina Console and delegates processing to WebhookReceiver.
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
7 8 9 10 11 12 |
# File 'app/controllers/machina/webhooks_controller.rb', line 7 def create receiver = Machina::WebhookReceiver.new(request) return head :unauthorized unless receiver.process! head :ok end |