Last active
March 17, 2020 06:33
-
-
Save bpinedah/a245dddab147c1a95502263692ec3bc5 to your computer and use it in GitHub Desktop.
Routes article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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