Router integration for HAWK_EX Dashboard.
Usage
In your Phoenix router:
defmodule MyAppWeb.Router do
use Phoenix.Router
import HawkExDashboard.Router
scope "/" do
# Protect with your existing auth pipeline
pipe_through [:browser, :require_admin]
hawk_ex_dashboard "/hawk_ex"
end
endThis mounts the dashboard at /hawk_ex with the following routes:
/hawk_ex → Overview
/hawk_ex/billing → Billing
/hawk_ex/audit → Audit Logs
/hawk_ex/csv → CSV Exports
Summary
Functions
Mounts the HAWK_EX dashboard at the given path.