mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 19:22:25 +08:00

* Routing: Use Routes instead of Switch * Update routeProps * Update GrafanaRoute.test * Update DashboardScenePage.tsx * Update DashboardPageProxy.test.tsx * Remove exact paths * Update parent routes * Move route wrapper * Update type * Fix plugin paths * Switch to the location hook
16 lines
456 B
TypeScript
16 lines
456 B
TypeScript
import { SafeDynamicImport } from 'app/core/components/DynamicImports/SafeDynamicImport';
|
|
import { RouteDescriptor } from 'app/core/navigation/types';
|
|
|
|
import { ROUTE_BASE_ID } from './constants';
|
|
|
|
export function getRoutes(): RouteDescriptor[] {
|
|
return [
|
|
{
|
|
path: `/${ROUTE_BASE_ID}/*`,
|
|
component: SafeDynamicImport(
|
|
() => import(/* webpackChunkName: "Connections"*/ 'app/features/connections/Connections')
|
|
),
|
|
},
|
|
];
|
|
}
|