Rindle.Admin.Router (Rindle v0.3.0)

Copy Markdown View Source

Router integration for the mountable Rindle Admin console.

Host applications mount the console inside their own authenticated Phoenix router scope. The host owns browser pipelines, authentication, and LiveView :on_mount hooks; Rindle owns only the console route expansion and library static assets.

Summary

Functions

Mounts Rindle Admin routes at path.

Functions

rindle_admin(path, opts \\ [])

(macro)

Mounts Rindle Admin routes at path.

In production, the mount must include a non-empty :on_mount list or an explicit auth_guarded?: true acknowledgement from the host application. The allow_unauthenticated?: true escape hatch is only accepted outside production for examples, CI fixtures, and local previews.