Provides a router macro for mounting the PhoenixFlags dashboard.
Usage
defmodule MyAppWeb.Router do
use Phoenix.Router
import PhoenixFlags.Router
scope "/admin" do
pipe_through [:browser, :require_admin]
flags_dashboard "/flags",
config: MyApp.SystemConfig
end
endOptions
:config(required) — the module thatuse PhoenixFlags:on_mount— list ofPhoenix.LiveView.on_mount/1hooks to add to the live session (e.g. for authentication):live_socket_path— defaults to"/live":app_js— path to the host application's JS bundle, which must connect a LiveSocket. Defaults to"/assets/js/app.js".
Summary
Functions
Defines routes for the PhoenixFlags dashboard.