MCPcopy
hub / github.com/directus/directus / getPublicURL

Function getPublicURL

app/src/utils/get-root-path.ts:11–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 * Get the full API root URL from the current page href
10 */
11export function getPublicURL(): string {
12 return extractRoot(window.location.href);
13}
14
15/**
16 * Extract the root path of the admin app from a given input path/url

Callers 11

sdk.tsFile · 0.90
getTriggersFunction · 0.90
getAssetUrlFunction · 0.90
getFilesUrlFunction · 0.90
getFolderUrlFunction · 0.90
onMediaSelectFunction · 0.90
replaceUrlAccessTokenFunction · 0.90
onImageSelectFunction · 0.90
replaceUrlAccessTokenFunction · 0.90
toRelativePathFunction · 0.90

Calls 1

extractRootFunction · 0.85

Tested by

no test coverage detected