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

Function makeTopicRequest

app/actions/topics.js:27–36  ·  view source on GitHub ↗
(method, data)

Source from the content-addressed store, hash-verified

25 * @return Promise
26 */
27function makeTopicRequest(method, data) {
28 return fetch(API_ENDPOINT, {
29 method: method,
30 headers: {
31 'Accept': 'application/json',
32 'Content-Type': 'application/json'
33 },
34 body: JSON.stringify(data)
35 });
36}
37
38function increment(index) {
39 return { type: types.INCREMENT_COUNT, index };

Callers 4

createTopicFunction · 0.85
incrementCountFunction · 0.85
decrementCountFunction · 0.85
destroyTopicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected