MCPcopy Create free account
hub / github.com/CoderOpen/waimai / buildFullPath

Function buildFullPath

front/utils/luch-request/core/buildFullPath.js:15–20  ·  view source on GitHub ↗
(baseURL, requestedURL)

Source from the content-addressed store, hash-verified

13 * @returns {string} The combined full path
14 */
15export default function buildFullPath(baseURL, requestedURL) {
16 if (baseURL && !isAbsoluteURL(requestedURL)) {
17 return combineURLs(baseURL, requestedURL)
18 }
19 return requestedURL
20}

Callers 3

requestMethod · 0.85
uploadMethod · 0.85
downloadMethod · 0.85

Calls 2

isAbsoluteURLFunction · 0.85
combineURLsFunction · 0.85

Tested by

no test coverage detected