Formatting
This commit is contained in:
parent
00e861adbc
commit
decd4b56e7
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue