simplify route bindings in config

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2024-01-20 11:16:25 +01:00
parent 475fd94380
commit 86346c2c11
5 changed files with 36 additions and 13 deletions
@@ -241,10 +241,10 @@ app:
bindings:
# point to the Scaffolder create component page when the Catalog create component ref is used
# highlight-next-line
plugin.catalog.externalRoutes.createComponent: plugin.scaffolder.routes.index
catalog.createComponent: scaffolder.index
# point to the Catalog details page when the Scaffolder component details ref is used
# highlight-next-line
plugin.scaffolder.externalRoutes.componentDetails: plugin.catalog.routes.details
scaffolder.componentDetails: catalog.details
```
We also have the ability to express this in code as an option to `createApp`, but you of course only need to use one of these two methods: