View Source Inbox.Router (Inbox v0.1.2)
A Plug.Router
. Should be used in a host application.
Usage
pipeline :api do
plug :accepts, ["json"]
forward("/inbox", Inbox.Router,
adapter: Inbox.Adapter.Postmark,
handler: MyApp.Processor
)
end
Supported options
:adapter
- the adapter module to use:handler
- the handler module to use:raw
- whether to include the raw message attributes in theInbox.Message
struct