plugins: remove unnecessary use of convertLegacyRouteRef(s)

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-11-23 14:17:58 +01:00
parent c8fc1429b4
commit 1c7ea4a3e8
33 changed files with 170 additions and 182 deletions
+4 -6
View File
@@ -23,8 +23,6 @@ import {
createFrontendPlugin,
} from '@backstage/frontend-plugin-api';
import { convertLegacyRouteRef } from '@backstage/core-compat-api';
import {
ApiEntity,
parseEntityRef,
@@ -44,7 +42,7 @@ import {
const apiDocsNavItem = NavItemBlueprint.make({
params: {
title: 'APIs',
routeRef: convertLegacyRouteRef(rootRoute),
routeRef: rootRoute,
icon: () => <AppIcon id="kind:api" />,
},
});
@@ -77,7 +75,7 @@ const apiDocsExplorerPage = PageBlueprint.makeWithOverrides({
factory(originalFactory, { config }) {
return originalFactory({
path: '/api-docs',
routeRef: convertLegacyRouteRef(rootRoute),
routeRef: rootRoute,
loader: () =>
import('./components/ApiExplorerPage').then(m => (
<m.ApiExplorerIndexPage
@@ -212,10 +210,10 @@ export default createFrontendPlugin({
pluginId: 'api-docs',
info: { packageJson: () => import('../package.json') },
routes: {
root: convertLegacyRouteRef(rootRoute),
root: rootRoute,
},
externalRoutes: {
registerApi: convertLegacyRouteRef(registerComponentRouteRef),
registerApi: registerComponentRouteRef,
},
extensions: [
apiDocsNavItem,