diff --git a/code_sharing/server/bin/server.dart b/code_sharing/server/bin/server.dart index f27ec5f23..6cb3608dd 100644 --- a/code_sharing/server/bin/server.dart +++ b/code_sharing/server/bin/server.dart @@ -27,7 +27,8 @@ void main(List args) async { final ip = InternetAddress.anyIPv4; // Configure a pipeline that logs requests. - final handler = Pipeline().addMiddleware(logRequests()).addHandler(_router); + final handler = + Pipeline().addMiddleware(logRequests()).addHandler(_router.call); // For running in containers, we respect the PORT environment variable. final port = int.parse(Platform.environment['PORT'] ?? '8080'); diff --git a/code_sharing/server/pubspec.yaml b/code_sharing/server/pubspec.yaml index b23fb1d65..f11c7c152 100644 --- a/code_sharing/server/pubspec.yaml +++ b/code_sharing/server/pubspec.yaml @@ -15,5 +15,5 @@ dependencies: dev_dependencies: http: ^1.0.0 - lints: ^2.0.0 + lints: ^3.0.0 test: ^1.15.0