platform/lib/src/middleware_pipeline.dart
2016-11-25 18:22:33 -05:00

17 lines
315 B
Dart

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);
}