View Source AshAdmin.Router (ash_admin v0.6.0-rc.1)
Provides LiveView routing for AshAdmin.
Link to this section Summary
Functions
Can be used to create a :browser
pipeline easily if you don't have one.
Defines an AshAdmin route.
It expects the path
the admin dashboard will be mounted at
and a set of options.
Link to this section Functions
Can be used to create a :browser
pipeline easily if you don't have one.
By default it is called :browser
, but you can rename it by supplying an argument,
for example:
defmodule MyAppWeb.Router do
use Phoenix.Router
import AshAdmin.Router
admin_browser_pipeline :something
scope "/" do
pipe_through [:something]
ash_admin "/admin"
end
end
Defines an AshAdmin route.
It expects the path
the admin dashboard will be mounted at
and a set of options.
examples
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