pub fn app_with_auth(
registry: Arc<dyn Registry>,
auth: AuthState,
health_state: Arc<HealthState>,
) -> RouterExpand description
Builds the router with every collaborator supplied explicitly.
The full builder every other one in this module calls. A deployment that
wants a durable session store, a configured operator credential, or a
file-backed e-stop latch calls this one directly; everything else keeps
working exactly as it did before AuthState existed.
health should be HealthTick::state from
the tick a caller has spawned for this registry. A router built any other
way here answers /health’s progress from a state nothing ever ticks.