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

Method fetchContent

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected