fn reactive_routes() -> Router<AppState>Expand description
Reactive routes. Previously registered without auth on the
assumption that localhost is a trust boundary; the 2026-05-11
security audit (C1 + C2) showed that any local process — or a
web page driving 127.0.0.1 via the permissive CORS layer — could
drive /agentmux/reactive/inject and reconfigure the cloud
muxbus poller. These routes are now merged into authed_routes
below and gated by auth_middleware. (/inject and /agent are
NOT here — see lan_forward_routes above.)