pub fn route_paths(
pool: &DescriptorPool,
aliases: &[AliasConfig],
selection: &RpcSelection,
) -> Vec<(String, String)>Expand description
The axum paths routes_with_options would register for this pool,
aliases and selection.
Mirrors the registration (every binding of every selected unary and server-streaming RPC, and their config aliases) without building handlers, so callers can detect route collisions before mounting additional routes (e.g. a forward-auth endpoint).
Each entry is (method, path) where method is the uppercase HTTP token,
or * for a route that answers every method, so callers can distinguish
same-path/different-method routes from real conflicts. The bindings of one
path are listed as the route they share: * once when a custom * rule
or a custom verb after a variable is among them (the transcoded routes
match the verb, and answer a bound verb’s other methods with 405), else
each method once. Two bindings that cannot both serve (one method or a *
rule, one verb) are listed both, so the caller sees the collision.