Refactor to new routing api

This commit is contained in:
Marcus Eide
2020-09-09 11:45:27 +02:00
parent 6093ef9bd9
commit d32a911c43
8 changed files with 70 additions and 24 deletions
+3
View File
@@ -30,6 +30,7 @@ import { Router as CatalogRouter } from '@backstage/plugin-catalog';
import { Router as DocsRouter } from '@backstage/plugin-techdocs';
import { Router as GraphiQLRouter } from '@backstage/plugin-graphiql';
import { Router as TechRadarRouter } from '@backstage/plugin-tech-radar';
import { Router as LighthouseRouter } from '@backstage/plugin-lighthouse';
import { Route, Routes, Navigate } from 'react-router';
import { EntityPage } from './components/catalog/EntityPage';
@@ -68,6 +69,8 @@ const AppRoutes = () => (
element={<TechRadarRouter width={1500} height={800} />}
/>
<Route path="/graphiql" element={<GraphiQLRouter />} />
<Route path="/lighthouse/*" element={<LighthouseRouter />} />
<Navigate key="/" to="/catalog" />
{...deprecatedAppRoutes}
</Routes>
);