Class: Webhooks::Incoming::BulletTrainWebhooksController
- Inherits:
-
WebhooksController
- Object
- WebhooksController
- Webhooks::Incoming::BulletTrainWebhooksController
- Defined in:
- app/controllers/webhooks/incoming/bullet_train_webhooks_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
2 3 4 5 |
# File 'app/controllers/webhooks/incoming/bullet_train_webhooks_controller.rb', line 2 def create Webhooks::Incoming::BulletTrainWebhook.create(data: JSON.parse(request.raw_post)).process_async render json: {status: "OK"}, status: :created end |