Skip to content

Instantly share code, notes, and snippets.

@bpinedah
Last active March 17, 2020 06:33
Show Gist options
  • Save bpinedah/a245dddab147c1a95502263692ec3bc5 to your computer and use it in GitHub Desktop.
Save bpinedah/a245dddab147c1a95502263692ec3bc5 to your computer and use it in GitHub Desktop.
Routes article
send: function send(data) {
// this is an incomplete example
const resp = {
statusCode,
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Credentials": true
},
body: JSON.stringify(data)
};
signal.continue = false;
return Promise.resolve(resp);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment