Files
backstage/.changeset/friendly-weeks-cry.md
T
2022-01-18 18:12:36 +00:00

518 B

@backstage/create-app
@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

const App = createApp({
  ...
  bindRoutes({ bind }) {
    ...
    bind(apiDocsPlugin.externalRoutes, {
-     createComponent: scaffolderPlugin.routes.root,
+     registerApi: catalogImportPlugin.routes.importPage,
    });
    ...
  },
});