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

Function post

cypress/plugins/bitbucket.js:65–74  ·  view source on GitHub ↗
(token, path, body)

Source from the content-addressed store, hash-verified

63}
64
65function post(token, path, body) {
66 return fetch(`${API_URL}${path}`, {
67 method: 'POST',
68 ...(body ? { body } : {}),
69 headers: {
70 ...(body ? { 'Content-Type': 'application/json' } : {}),
71 Authorization: `Bearer ${token}`,
72 },
73 });
74}
75
76function del(token, path) {
77 return fetch(`${API_URL}${path}`, {

Callers 2

prepareTestBitBucketRepoFunction · 0.85
resetOriginRepoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected