Skip to content

Commit

Permalink
Fix example of 'Hello World' app
Browse files Browse the repository at this point in the history
Added missing parameters into the callback of $app->get('/', ...
  • Loading branch information
rrramble committed Sep 30, 2019
1 parent 44a5324 commit ec9acc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -74,7 +74,7 @@ $app = AppFactory::create();
$app->addErrorMiddleware(true, true, true);

// Add routes
$app->get('/', function () {
$app->get('/', function (Request $request, Response $response) {
$response->getBody()->write('<a href="/hello/world">Try /hello/world</a>');
return $response;
});
Expand Down

0 comments on commit ec9acc5

Please sign in to comment.