Aludel.Web.Router (aludel v0.2.0)

Copy Markdown View Source

Provides the aludel_dashboard macro for mounting Aludel in host apps.

Summary

Functions

Defines an Aludel dashboard route.

Functions

aludel_dashboard(path, opts \\ [])

(macro)

Defines an Aludel dashboard route.

Options

  • :as - override route name (default: :aludel_dashboard)
  • :csp_nonce_assign_key - CSP nonce keys (nil, atom, or map)
  • :logo_path - custom logo link path
  • :on_mount - additional mount hooks
  • :aludel_name - Aludel instance name (default: Aludel)
  • :resolver - Aludel.Web.Resolver implementation
  • :socket_path - phoenix socket path (default: "/live")
  • :transport - "websocket" or "longpoll" (default: "websocket")

Examples

scope "/" do
  pipe_through :browser
  aludel_dashboard "/aludel"
end