mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
Co-authored-by: nmarrs <nathanielmarrs@gmail.com> Co-authored-by: Adela Almasan <adela.almasan@grafana.com> Co-authored-by: drew08t <drew08@gmail.com> Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
21 lines
582 B
TypeScript
21 lines
582 B
TypeScript
import { SafeDynamicImport } from 'app/core/components/DynamicImports/SafeDynamicImport';
|
|
import { config } from 'app/core/config';
|
|
import { RouteDescriptor } from 'app/core/navigation/types';
|
|
|
|
export function getRoutes(): RouteDescriptor[] {
|
|
if (config.featureToggles.queryLibrary) {
|
|
return [
|
|
{
|
|
path: `/query-library`,
|
|
exact: true,
|
|
component: SafeDynamicImport(
|
|
() =>
|
|
import(/* webpackChunkName: "QueryLibraryPage" */ 'app/features/query-library/components/QueryLibraryPage')
|
|
),
|
|
},
|
|
];
|
|
}
|
|
|
|
return [];
|
|
}
|