-
-
Save richardgrantserverless/7a72021172b0ae138dac4ed440818c96 to your computer and use it in GitHub Desktop.
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
// handler.js | |
module.exports.helloWorld = (event, context, callback) => { | |
var hWorld = new HelloWorld(); | |
const response = { | |
statusCode: 200, | |
headers: { | |
'Access-Control-Allow-Origin': '*', // Required for CORS support to work | |
}, | |
body: JSON.stringify(hWorld.sayHello(event)), | |
}; | |
callback(null, response); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment