Merge pull request #8782 from akz08/reroute-register-api
Reroute register api
This commit is contained in:
@@ -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,
|
||||
});
|
||||
...
|
||||
},
|
||||
});
|
||||
```
|
||||
@@ -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.
|
||||
Reference in New Issue
Block a user