Update docs/frontend-system/architecture/07-routes.md

Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2024-01-12 15:52:16 +01:00
parent 88cf8a665e
commit c01052ec32
@@ -89,7 +89,7 @@ It may be unclear why we need to pass the route to the plugin when it has alread
### Route Path Parameters
The referenced route can also accepts `params`. Here is how you create a reference for a route that requires a kind, namespace and name `params`, like in this path `/entities/:kind/:namespace/:name`:
Route references optionally accept a `params` option, which will require the listed parameter names to be present in the route path. Here is how you create a reference for a route that requires a `kind`, `namespace` and `name` parameters, like in this path `/entities/:kind/:namespace/:name`:
```tsx
// plugins/catalog/src/routes.ts