summaryrefslogtreecommitdiff
path: root/server/lib/net/app.dart
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2026-11-23 20:01:04 +0100
committerJoel Klinghed <the_jk@spawned.biz>2026-11-23 20:01:04 +0100
commit3346626cdcbf37cd63428e5f537fa5c70c71425a (patch)
tree443aab075109d54970e8aef0f4136f25c7cd5729 /server/lib/net/app.dart
parent486ffb62ebc392fe95b21f0184132cb8d16f51a0 (diff)
server: tear off router.call explicitly in the handler pipeline
Diffstat (limited to 'server/lib/net/app.dart')
-rw-r--r--server/lib/net/app.dart2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/net/app.dart b/server/lib/net/app.dart
index 1d66c49..197285b 100644
--- a/server/lib/net/app.dart
+++ b/server/lib/net/app.dart
@@ -83,7 +83,7 @@ Handler createHandler({
return Response.ok(jsonEncode({'session': id}), headers: headers);
});
router.mount('/', _createStaticHandler(staticDir));
- return const Pipeline().addMiddleware(_logRequests()).addHandler(router);
+ return const Pipeline().addMiddleware(_logRequests()).addHandler(router.call);
}
/// Starts the server on [port] (0 for an ephemeral port).