Skip to main content

Module: lib/router

Interfaces

Variables

NotFoundRoute

NotFoundRoute: Object

Type declaration

NameType
component() => Element
exactboolean
namestring
noAuthRequiredboolean
pathstring
sidebarnull

Defined in

lib/router.tsx:761

Functions

createRouteURL

createRouteURL(routeName, params?): string

Parameters

NameType
routeNamestring
paramsRouteURLProps

Returns

string

Defined in

lib/router.tsx:819


getDefaultRoutes

getDefaultRoutes(): Object

Returns

Object

Defined in

lib/router.tsx:847


getRoute

getRoute(routeName): Route

Parameters

NameType
routeNamestring

Returns

Route

Defined in

lib/router.tsx:770


getRoutePath

getRoutePath(route): string

Parameters

NameType
routeRoute

Returns

string

Defined in

lib/router.tsx:803


getRouteUseClusterURL

getRouteUseClusterURL(route): boolean

Should the route use a cluster URL?

Parameters

NameType
routeRoute

Returns

boolean

true when a cluster URL contains cluster in the URL. eg. /c/minikube/my-url false, the URL does not contain the cluster. eg. /my-url

Defined in

lib/router.tsx:791