mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
27 lines
611 B
TypeScript
27 lines
611 B
TypeScript
import { RouteProps } from "react-router";
|
|
import { buildURL } from "../../navigation";
|
|
|
|
export const crdRoute: RouteProps = {
|
|
path: "/crd"
|
|
}
|
|
|
|
export const crdDefinitionsRoute: RouteProps = {
|
|
path: crdRoute.path + "/definitions"
|
|
}
|
|
|
|
export const crdResourcesRoute: RouteProps = {
|
|
path: crdRoute.path + "/:group/:name"
|
|
}
|
|
|
|
export interface ICRDListQuery {
|
|
groups?: string;
|
|
}
|
|
|
|
export interface ICRDRouteParams {
|
|
group: string;
|
|
name: string;
|
|
}
|
|
|
|
export const crdURL = buildURL<{}, ICRDListQuery>(crdDefinitionsRoute.path);
|
|
export const crdResourcesURL = buildURL<ICRDRouteParams>(crdResourcesRoute.path);
|