MCPcopy
hub / github.com/futantan/OpenGpt / fetchPost

Function fetchPost

src/utils/fetchPost.ts:1–8  ·  view source on GitHub ↗
(url = '', data = {})

Source from the content-addressed store, hash-verified

1export async function fetchPost(url = '', data = {}) {
2 const response = await fetch(url, {
3 method: 'POST',
4 headers: { 'Content-Type': 'application/json' },
5 body: JSON.stringify(data),
6 })
7 return response.json()
8}

Callers 2

sendMessageToDiscordFunction · 0.90
sendAlertToDiscordFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected