MCPcopy Create free account
hub / github.com/Lifeforge-app/lifeforge / fetchAPI

Function fetchAPI

packages/api/src/utils/fetchAPI.ts:84–213  ·  view source on GitHub ↗
(
  apiHost: string,
  endpoint: string,
  {
    method = 'GET',
    body,
    headers: customHeaders,
    timeout = 300000,
    raiseError = true,
    isExternal = false
  }: {
    method?: string
    body?: string | FormData | URLSearchParams | Blob | Record<string, unknown>
    headers?: Record<string, string>
    timeout?: number
    raiseError?: boolean
    isExternal?: boolean
  } = {}
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

rawMutationOptionsMethod · 0.90
queryRawMethod · 0.90
mutateRawMethod · 0.90

Calls 1

createAxiosInstanceFunction · 0.85

Tested by

no test coverage detected