AccrueAdmin.Router (accrue_admin v1.0.0)

Copy Markdown View Source

Router helpers for mounting the :accrue_admin package into a host app.

Summary

Functions

accrue_admin(path, opts \\ [])

(macro)

Mounts the admin package at path.

Options

  • :session_keys - explicit host session keys to thread into the admin LiveView session
  • :on_mount - additional LiveView on_mount hooks
  • :csp_nonce_assign_key - reserved for later CSP hardening plans
  • :allow_live_reload - compile-time gate for dev-only admin routes

assets_path(kind, mount_path)

@spec assets_path(:css | :js, String.t()) :: String.t()