plugins: use convertLegacyRouteRefs

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-01-19 11:20:39 +01:00
parent 2f2a1d2ad2
commit 912ca7b583
8 changed files with 57 additions and 40 deletions
+4 -3
View File
@@ -37,6 +37,7 @@ import { graphiQLRouteRef } from './route-refs';
import {
compatWrapper,
convertLegacyRouteRef,
convertLegacyRouteRefs,
} from '@backstage/core-compat-api';
/** @alpha */
@@ -128,7 +129,7 @@ export default createPlugin({
graphiqlGitlabGraphiQLEndpointExtension,
graphiqlNavItem,
],
routes: {
root: convertLegacyRouteRef(graphiQLRouteRef),
},
routes: convertLegacyRouteRefs({
root: graphiQLRouteRef,
}),
});