Skip to main content

createSubRouteRef()

Home > @backstage/frontend-plugin-api > createSubRouteRef

Create a SubRouteRef from a route descriptor.

Signature:

function createSubRouteRef<Path extends string, ParentParams extends AnyRouteRefParams = never>(config: {
path: Path;
parent: RouteRef<ParentParams>;
}): MakeSubRouteRef<PathParams<Path>, ParentParams>;

Parameters

ParameterTypeDescription
config{ path: Path; parent: RouteRef<ParentParams>; }Description of the route reference to be created.

Returns:

MakeSubRouteRef<PathParams<Path>, ParentParams>