Skip to content

Commit 261a713

Browse files
committed
update endpoint in Program class
1 parent 73d67d9 commit 261a713

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Program.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use DevNet\Web\Extensions\ServiceCollectionExtensions;
77
use DevNet\Web\Hosting\WebHost;
88
use DevNet\Web\Http\HttpContext;
9-
use DevNet\System\Async\Task;
109

1110
class Program
1211
{
@@ -31,7 +30,7 @@ public static function main(array $args = [])
3130
$app->useRouter();
3231
// middlewares
3332
$app->useEndpoint(function ($routes) {
34-
$routes->mapGet("/", fn (HttpContext $context): Task => $context->Response->writeAsync("Hello World!"));
33+
$routes->mapGet("/", fn (HttpContext $context) => $context->Response->writeAsync("Hello World!"));
3534
});
3635
});
3736
}

0 commit comments

Comments
 (0)