Skip to content

Function: setDefaultRoutingConfig()

ts
function setDefaultRoutingConfig(config): Promise<void>;

Set the default custom routing configuration applied to subsequent routes.

Parameters

ParameterTypeDescription
configDefaultCustomRoutingConfigThe DefaultCustomRoutingConfig to apply. Required; must be a plain object.

Returns

Promise<void>

a promise that resolves once the config is sent.

Throws

MAPSTED-1013 when config is null / undefined, an array, or not an object.

Throws

MAPSTED-1090 when the API is not READY.