MCPcopy Create free account
hub / github.com/decaporg/decap-cms / fetchContent

Method fetchContent

packages/decap-cms-backend-azure/src/API.ts:353–359  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

351 { parseText = true, branch = this.branch } = {},
352 ) => {
353 const fetchContent = () => {
354 return this.request({
355 url: `${this.endpointUrl}/items/`,
356 params: { version: branch, path },
357 cache: 'no-store',
358 }).then<Blob | string>(parseText ? this.responseToText : this.responseToBlob);
359 };
360
361 return readFile(sha, fetchContent, localForage, parseText);
362 };

Callers

nothing calls this directly

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected