1
0
mirror of https://github.com/lensapp/lens.git synced 2024-08-16 04:40:24 +03:00

chore: Cleanup custom resource route definition

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-05-15 14:33:04 -04:00
parent 147be22db3
commit e641509e3d

View File

@ -8,15 +8,15 @@ import type { Route } from "../../../front-end-route-injection-token";
import { frontEndRouteInjectionToken } from "../../../front-end-route-injection-token";
export interface CustomResourcesPathParameters {
group?: string;
name?: string;
group: string;
name: string;
}
const customResourcesRouteInjectable = getInjectable({
id: "custom-resources-route",
instantiate: (): Route<CustomResourcesPathParameters> => ({
path: "/crd/:group?/:name?",
path: "/crd/:group/:name",
clusterFrame: true,
isEnabled: computed(() => true),
}),