pub fn router(kernel: Kernel) -> RouterExpand description
The control plane’s routes over kernel (spec 3.2 §7.11), relative to the /api
prefix: merge them with ServerBuilder::add_api_routes, whose auth middleware puts the
caller’s RequestContext in the request extensions. Building them sets
Kernel::serves_routes, which tells a web home served beside them to read them.
§Example
let builder = builder.add_api_routes(adk_kernel::control::router(kernel));