Created
December 7, 2022 20:20
-
-
Save shoguevara/32471f9bb64af9bba9e360bf93bc97a0 to your computer and use it in GitHub Desktop.
YDS messages to JS
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
exports.handler= async function (data, context) { | |
console.log(JSON.stringify(context)); | |
console.log(JSON.stringify(data)); | |
return { | |
'statusCode': 200, | |
'body': data, | |
'headers': {"Content-Type":"application/x-octet-stream"} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment