MCPcopy Create free account
hub / github.com/serverless/examples / callApi

Function callApi

aws-node-fullstack/frontend/src/DemoApp.js:113–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 }
112
113 const callApi = () => {
114 return fetch(this.state.admin.url, {
115 method: 'POST',
116 mode: 'cors',
117 headers: {
118 'Content-Type': 'application/json',
119 },
120 body: JSON.stringify({ name, email }),
121 })
122 }
123
124 return callApi()
125 .then(() => {

Callers 2

submitFormFunction · 0.85
runnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected