Admin related functions.
Example
var adminLib = require('/lib/xp/admin');
Members
(static) getMainAppUrl
Return url for the main app.
Methods
(static) getAssetsUri() → {string}
Returns the admin assets uri.
Returns:
Assets uri.
- Type
- string
(static) getBaseUri() → {string}
Returns the admin base uri.
Returns:
Admin base uri.
- Type
- string
(static) getLauncherUrl()
Returns the URL for launcher javascript.
(static) getLocale() → {string}
Returns the current locale based on request or server.
Returns:
Current locale.
- Type
- string
(static) getPhrases() → {string}
Returns all i18n phrases.
Returns:
Current locale.
- Type
- string