mirror of
https://github.com/ash-project/ash_admin.git
synced 2024-09-20 21:32:56 +12:00
58444c47c7
* WIP - pass 1 * Pass prefix in session map and use in page_live.ex * Update logic and add test
15 lines
248 B
Elixir
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
|