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

Function makeUserRequest

app/actions/users.js:17–26  ·  view source on GitHub ↗
(method, data, api='/login')

Source from the content-addressed store, hash-verified

15 * @return Promise
16 */
17function makeUserRequest(method, data, api='/login') {
18 return fetch(api, {
19 method: method,
20 headers: {
21 'Accept': 'application/json',
22 'Content-Type': 'application/json'
23 },
24 body: JSON.stringify(data)
25 });
26}
27
28
29// Log In Action Creators

Callers 2

manualLoginFunction · 0.85
signUpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected