pub use ontoref_ontology::api::{ApiParam, ApiRouteEntry};

/// Return the full API catalog sorted by path then method.
pub fn catalog() -> Vec<&'static ApiRouteEntry> {
    let mut routes: Vec<&'static ApiRouteEntry> = inventory::iter::<ApiRouteEntry>().collect();
    routes.sort_by(|a, b| a.path.cmp(b.path).then(a.method.cmp(b.method)));
    routes
}
