Class: Fopost::Rails::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/fopost/rails/engine.rb

Overview

Mount to receive FoPost webhooks:

# config/routes.rb
mount Fopost::Rails::Engine => '/fopost'

That serves POST /fopost/webhooks. Point a webhook at it, set config.webhook_secret to the secret FoPost showed you once, and subscribe to the events it publishes.