pub fn compose_router<S>(
state: S,
cors_origins: &[String],
api_routes: Router<S>,
) -> Routerwhere
S: RuntimeApiHostState,Expand description
Mount /health, /internal/probe, merge authenticated /v1/*, and CORS defaults.
api_routes must already include the bearer-token route_layer
from the host crate.