AshAdmin.Router.ash_admin
You're seeing just the macro
ash_admin
, go back to AshAdmin.Router module for more information.
Defines an AshAdmin route.
It expects the path
the admin dashboard will be mounted at
and a set of options.
Examples
defmodule MyAppWeb.Router do
use Phoenix.Router
scope "/" do
import AshAdmin.Router
# Make sure you are piping through the browser pipeline
# If you don't have one, see `admin_browser_pipeline/1`
pipe_through [:browser]
ash_admin "/admin"
end
end