Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgf committed Sep 9, 2021
1 parent 1b70114 commit e1d8713
Show file tree
Hide file tree
Showing 4 changed files with 8,568 additions and 1,168 deletions.
6 changes: 3 additions & 3 deletions example/handler.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
module.exports.hello = (event, context, callback) => {
if ((event.queryStringParameters || {}).error) callback(new Error('Oh no!'))
console.log('The first version')
console.log('The second version')
const response = {
statusCode: 200,
body: JSON.stringify({
message: 'The first version'
message: 'The second version'
})
}
return callback(null, response)
}

module.exports.authorize = (event, context, callback) => {
console.log('The first authroizer')
console.log('The first authorizer')
const response = {
statusCode: 200,
body: JSON.stringify({
Expand Down
Loading

0 comments on commit e1d8713

Please sign in to comment.