MCPcopy Create free account
hub / github.com/caesarHQ/textSQL / acceptSuggestion

Function acceptSuggestion

client/censusGPT/src/components/suggestion.js:9–24  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

7}
8
9const acceptSuggestion = async (id) => {
10 const url = `${api_endpoint}/api/accept_suggestion`
11 const body = {
12 id,
13 }
14 const response = await fetch(url, {
15 method: 'POST',
16 headers: {
17 'Content-Type': 'application/json',
18 },
19 body: JSON.stringify(body),
20 })
21 const data = await response.json()
22 console.log(data)
23 return "success"
24}
25
26
27

Callers 1

handleClickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected