Skip to content

Commit

Permalink
Updated example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
designcise committed Mar 30, 2020
1 parent 0cf97f9 commit 97f68a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ $app = new App();
$router = new Router();
$router->map(['GET', 'POST'], '/test', function ($request, $handler) {
$handler->write('Test Page');
return $handler->handle($request);
$response = $handler->handle($request);
$response->getBody()->write('Test Page');
return $response;
});
$app->run([
Expand Down

0 comments on commit 97f68a4

Please sign in to comment.