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:54