Provides LiveView routing for the Arcana dashboard.
Usage
Add to your router:
import ArcanaWeb.Router
scope "/" do
pipe_through :browser
arcana_dashboard "/arcana"
endOptions
:live_socket_path- The path to the LiveView socket. Defaults to"/live".:repo- The Ecto repo to use for Arcana operations. If not provided, falls back toApplication.get_env(:arcana, :repo).:on_mount- Optional list ofPhoenix.LiveView.on_mount/1callbacks to add to the dashboard's live_session.
Example with options
arcana_dashboard "/arcana",
repo: MyApp.Repo,
on_mount: [MyAppWeb.Auth]
Summary
Functions
Defines an Arcana dashboard route.