SkillKit.Webhook.Url (SkillKit v0.1.0)

Copy Markdown View Source

Builds externally-visible URLs for webhook registrations.

By default reads config :skill_kit, :webhook_base_url. Hosts can override per-call via the :base_url option. When neither is set the URL is returned path-only (/webhooks/<id>), useful for tests and relative routing.

Summary

Functions

url(webhook, opts \\ [])

@spec url(
  SkillKit.Webhook.t(),
  keyword()
) :: String.t()