1. @override
List<APIPath> documentPaths(PackagePathResolver resolver)

Returns all APIPath objects this instance knows about.

This method is implemented by Router.

Source

@override
List<APIPath> documentPaths(PackagePathResolver resolver) {
  return _routeControllers
      .expand((rh) => rh.patterns)
      .map((RouteSpecification routeSpec) =>
          routeSpec.documentPaths(resolver).first)
      .toList();
}