Skip to main content

compose_router_mounts

Function compose_router_mounts 

Source
pub fn compose_router_mounts(
    files: &[RepositorySourceFile<'_>],
) -> Vec<Vec<SourceObservation>>
Expand description

Rewrites provider paths with the router prefixes mounted above them.

The result has one observation list per input file, in input order. Mount observations are consumed, a route on a router mounted at several places is repeated once per composed path, and routes whose router is not mounted anywhere keep their path.