defmodule YourApp.Router do
use Phoenix.Router
use BoomNotifier,
notifier: BoomNotifier.WebhookNotifier,
options: [
url: "http://example.com",
headers: [Authorization: "Bearer token"]
]
# ...
To configure it, you need to set the url
in the options
keyword list. A POST
request with a json
will be made to that webhook when an error ocurrs with the relevant information.
Optionally, you could also add headers
to the request as another keyword list.