//! Router composition — public routes and CORS (D16 E1-c phase 2).
//!
//! Bearer auth on `/v1/*` is applied by the sidecar before calling [`compose_router`]
//! so Axum state types stay aligned when merging route trees.
use Router;
use get;
use cratecors_layer;
use crate;
use crateRuntimeApiHostState;
/// Mount `/health`, `/internal/probe`, merge authenticated `/v1/*`, and CORS defaults.
///
/// `api_routes` must already include the bearer-token [`route_layer`](axum::Router::route_layer)
/// from the host crate.