Skip to content

Commit 02433dc

Browse files
committed
address copilot review
1 parent 39de3dd commit 02433dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/en/development/attribute-routing.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ your controller classes. Enable it in your **config/routes.php**:
2525

2626
```php
2727
// config/routes.php
28+
use Cake\Routing\Route\DashedRoute;
29+
use Cake\Routing\RouteBuilder;
2830

2931
/** @var \Cake\Routing\RouteBuilder $routes */
3032
$routes->connectAttributes();
@@ -399,7 +401,7 @@ Both produce the same routes:
399401
| HTTP Method | URL | Action |
400402
|---|---|---|
401403
| GET | `/articles` | `index` |
402-
| GET | `/articles/:id` | `view` |
404+
| GET | `/articles/{id}` | `view` |
403405

404406
`#[Resource]` parameters:
405407

0 commit comments

Comments
 (0)