pub fn collect_auto_routes() -> Vec<Route>Expand description
Collect all auto-registered routes.
This function iterates over the distributed slice and calls each
route factory function to produce the actual Route instances.
§Returns
A vector containing all routes that were registered using the
#[rustapi::get], #[rustapi::post], etc. macros.
§Example
ⓘ
let routes = collect_auto_routes();
println!("Found {} auto-registered routes", routes.len());