api-docs: add default route target

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-05-08 17:27:16 +02:00
parent ec3ca372aa
commit 7f8403952f
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-api-docs': patch
---
The `registerComponent` external route will now by default bind to the catalog import page if it is available.
+1
View File
@@ -26,4 +26,5 @@ export const rootRoute = createRouteRef({
export const registerComponentRouteRef = createExternalRouteRef({
id: 'register-component',
optional: true,
defaultTarget: 'catalog-import.importPage',
});