allOf<THub> static method

List<ResourceRestEndpoint> allOf<THub>()

Implementation

static List<ResourceRestEndpoint> allOf<THub>() {
  final resources = resolve<HubProvider<THub>>().resources;
  return [
    ...resources
        .whereType<ElementResourceProvider>()
        .map(ElementResourceRestEndpoint.new),
    ...resources
        .whereType<CollectionResourceProvider>()
        .map(CollectionResourceRestEndpoint.new),
  ];
}