@@ -7,7 +7,7 @@ |
||
| 7 | 7 | $router = new Router(); |
| 8 | 8 | |
| 9 | 9 | $router->get('/home/{id}/{foo}', 'home', function ($id) { |
| 10 | - echo 'hi from home ' . $id; |
|
| 10 | + echo 'hi from home ' . $id; |
|
| 11 | 11 | })->where(['id' => '[0-9]+']); |
| 12 | 12 | |
| 13 | 13 | $request = \GuzzleHttp\Psr7\ServerRequest::fromGlobals(); |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | $router = new Router(); |
| 8 | 8 | |
| 9 | -$router->get('/home/{id}/{foo}', 'home', function ($id) { |
|
| 9 | +$router->get('/home/{id}/{foo}', 'home', function($id) { |
|
| 10 | 10 | echo 'hi from home ' . $id; |
| 11 | 11 | })->where(['id' => '[0-9]+']); |
| 12 | 12 | |