chore: Cleanup custom resource route definition

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and Gabriel Accettola committed 2023-05-23 10:46:02 +02:00
1 parent 723cfe8ae8
commit f65e5672b5
1 file changed
+3 -3
@@ -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),
}),