Home > @uniformdev/canvas > RouteClient

RouteClient class

Resolves a route using Uniform Project Map and Uniform Redirects, returning a composition, redirection, or not found result.

Signature:

Extends: ApiClient<RouteClientOptions>

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Constructs a new instance of the RouteClient class

Methods

Method

Modifiers

Description

get(options)

Resolves a route to a composition, redirect, or not-found result.

An optional select projection applies to the resolved composition when the route matches one; redirect / notFound responses pass through untouched.

getRoute(options)