Merge pull request #8782 from akz08/reroute-register-api

Reroute register api
This commit is contained in:
Fredrik Adelöw
2022-01-19 11:39:37 +01:00
committed by GitHub
8 changed files with 36 additions and 10 deletions
+21
View File
@@ -0,0 +1,21 @@
---
'@backstage/create-app': patch
---
Rebind external route for catalog import plugin from `scaffolderPlugin.routes.root` to `catalogImportPlugin.routes.importPage`.
To make this change to an existing app, make the following change to `packages/app/src/App.tsx`
```diff
const App = createApp({
...
bindRoutes({ bind }) {
...
bind(apiDocsPlugin.externalRoutes, {
- createComponent: scaffolderPlugin.routes.root,
+ registerApi: catalogImportPlugin.routes.importPage,
});
...
},
});
```
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-api-docs': minor
---
Renamed the `createComponent` external route to `registerApi` since it's now recommended to link to the entity registration page rather than the creation page.