Skip to content

setCustomUrl

Overview

Sets a custom URL for a key.

Signature

setCustomUrl(key, url)

Parameters

NameTypeRequiredDescription
keystringyesthe key code uses to look up the URL
urlstringyesthe routing part of the url, between the hostname and the desired viewset/view

Returns

void

Examples

js
setCustomUrl('modelList', '/api/v2/:app/:model/');

Source

client/lib/utils/urls.js:52

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2