catalog: add missing unregisterRedirect external router to alpha

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-11-23 14:11:15 +01:00
parent f8b9998446
commit 531e1a2a79
3 changed files with 8 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog': patch
---
Updated alpha plugin to include the `unregisterRedirect` external route.
+1
View File
@@ -50,6 +50,7 @@ const _default: BackstagePlugin<
},
true
>;
unregisterRedirect: ExternalRouteRef<undefined, true>;
}
>;
export default _default;
+2
View File
@@ -22,6 +22,7 @@ import { entityRouteRef } from '@backstage/plugin-catalog-react';
import {
createComponentRouteRef,
createFromTemplateRouteRef,
unregisterRedirectRouteRef,
rootRouteRef,
viewTechDocRouteRef,
} from '../routes';
@@ -45,6 +46,7 @@ export default createPlugin({
viewTechDoc: convertLegacyRouteRef(viewTechDocRouteRef),
createComponent: convertLegacyRouteRef(createComponentRouteRef),
createFromTemplate: convertLegacyRouteRef(createFromTemplateRouteRef),
unregisterRedirect: convertLegacyRouteRef(unregisterRedirectRouteRef),
},
extensions: [
...apis,