ash_admin/test/support/router.ex
Kevin Mathew 58444c47c7
fix: Admin links are not aware of the scope where ash_admin is called (#49)
* WIP - pass 1

* Pass prefix in session map and use in page_live.ex

* Update logic and add test
2023-03-25 21:09:46 -04:00

15 lines
248 B
Elixir

defmodule AshAdmin.Test.Router do
use Phoenix.Router
pipeline :browser do
plug(:fetch_session)
plug(:fetch_query_params)
end
scope "/api" do
pipe_through(:browser)
import AshAdmin.Router
ash_admin("/admin")
end
end