MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / buildUrl

Function buildUrl

packages/editor-core/src/utils/request.ts:18–24  ·  view source on GitHub ↗
(dataAPI: string, params?: object)

Source from the content-addressed store, hash-verified

16}
17
18export function buildUrl(dataAPI: string, params?: object): string {
19 const paramStr = serialize(params);
20 if (paramStr) {
21 return dataAPI.indexOf('?') > 0 ? `${dataAPI}&${paramStr}` : `${dataAPI}?${paramStr}`;
22 }
23 return dataAPI;
24}
25
26export function get(dataAPI: string, params?: object, headers?: object, otherProps?: object): Promise<any> {
27 const fetchHeaders = {

Callers 1

getFunction · 0.70

Calls 2

serializeFunction · 0.70
indexOfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…