MCPcopy Index your code
hub / github.com/reactGo/reactGo / fetchTopics

Function fetchTopics

app/server.jsx:19–23  ·  view source on GitHub ↗
(callback, api='topic')

Source from the content-addressed store, hash-verified

17// Fetch and call the callback function after the response
18// is converted to returned and converted to json
19function fetchTopics(callback, api='topic') {
20 fetch(`http://${clientConfig.host}:${clientConfig.port}/${api}`)
21 .then(res => res.json())
22 .then(json => callback(json));
23};
24
25
26/*

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected