Skip to main content

route_table

Function route_table 

Source
pub fn route_table(
    metrics_enabled: bool,
) -> Vec<(&'static str, &'static str, &'static str)>
Expand description

audit-2026-04-25 P2-7: enumerate every route the router mounts so the startup banner in mnem http main is no longer hand-written and incomplete. Each entry is (METHOD-LIST, PATH, brief). Kept in sync with the Router::new().route(...) chain in app_with_options by colocating the data here; tests in tests/banner_route_table.rs assert the count matches the router’s route count.