Skip to content

Commit 6d48e6b

Browse files
author
Milad Rahimi
authored
Update README.md
1 parent d178cff commit 6d48e6b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,7 @@ $router->group($attributes, function (Router $router) {
446446
// Controller: App\Controllers\ShopController@getProduct
447447
// Domain: shop.example.com
448448
// Middleware: SampleMiddleware
449-
$router->get('/{id}', function ($id) {
450-
return 'Wow.';
451-
});
449+
$router->get('/{id}', 'ShopController@getProduct');
452450
});
453451

454452
$router->dispatch();

0 commit comments

Comments
 (0)