Created
September 9, 2017 10:09
-
-
Save rts-rob/055700ff6e1eb8cd1f8904e5c7a5a32e to your computer and use it in GitHub Desktop.
Send a MySQL query response back through the callback
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
const response = { | |
statusCode: 200, | |
body: JSON.stringify({ | |
text: `Hi, ${requestingUser}.\nYour database has been reset!` | |
}) | |
}; | |
callback(null, response); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment