Created
June 14, 2017 13:14
-
-
Save matthieu-D/0d9f6c91584a3836698e6ef1ababdd27 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
exports.handler = (event, context, callback) => { | |
var responseCode = 200; | |
var responseBody = { | |
received: true | |
}; | |
var response = { | |
statusCode: responseCode, | |
headers: { | |
"x-custom-header" : "custom header value" | |
}, | |
body: JSON.stringify(responseBody) | |
}; | |
context.succeed(response); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment