Formatting

This commit is contained in:
Tobe O 2019-11-22 08:29:56 -05:00
parent 00e861adbc
commit decd4b56e7
2 changed files with 3 additions and 3 deletions

View file

@ -47,7 +47,8 @@ class Controller {
} }
/// Applies the routes from this [Controller] to some [router]. /// Applies the routes from this [Controller] to some [router].
Future<String> applyRoutes(Router<RequestHandler> router, Reflector reflector) async { Future<String> applyRoutes(
Router<RequestHandler> router, Reflector reflector) async {
// Load global expose decl // Load global expose decl
var classMirror = reflector.reflectClass(this.runtimeType); var classMirror = reflector.reflectClass(this.runtimeType);
Expose exposeDecl = findExpose(reflector); Expose exposeDecl = findExpose(reflector);

View file

@ -96,8 +96,7 @@ class HostnameRouter {
// app.dumpTree(); // app.dumpTree();
var r = app.optimizedRouter; var r = app.optimizedRouter;
var resolved = var resolved = r.resolveAbsolute(req.path, method: req.method);
r.resolveAbsolute(req.path, method: req.method);
var pipeline = MiddlewarePipeline<RequestHandler>(resolved); var pipeline = MiddlewarePipeline<RequestHandler>(resolved);
// print('Pipeline: $pipeline'); // print('Pipeline: $pipeline');
for (var handler in pipeline.handlers) { for (var handler in pipeline.handlers) {