platform/lib/src/middleware_pipeline.dart

18 lines
315 B
Dart
Raw Normal View History

2016-11-25 23:22:33 +00:00
import 'router.dart';
class MiddlewarePipeline {
final List<RoutingResult> routingResults;
List get handlers {
final handlers = [];
for (RoutingResult result in routingResults) {
handlers.addAll(result.allHandlers);
}
return handlers;
}
MiddlewarePipeline(this.routingResults);
}