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

Function apiGet

packages/decap-cms-backend-git-gateway/src/implementation.ts:131–135  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

129}
130
131async function apiGet(path: string) {
132 const apiRoot = 'https://api.netlify.com/api/v1/sites';
133 const response = await fetch(`${apiRoot}/${path}`).then(res => res.json());
134 return response;
135}
136
137export default class GitGateway implements Implementation {
138 config: Config;

Callers 1

getDeployPreviewMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected