Created
October 19, 2021 05:31
-
-
Save htr3n/8286069ce09828a57f6ef9b7e35ae218 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
'use strict'; | |
exports.handler = async (event, context, callback) => { | |
const result = { | |
body: null, | |
isBase64Encoded: false, | |
statusCode: 200 | |
}; | |
console.log('Received a render request event'); | |
try { | |
// result.body = // call another function using Node Canvas; | |
} catch (error) { | |
console.log(error); | |
result.statusCode = 500; | |
result.body = JSON.stringify(error); | |
return callback(result); | |
} | |
return callback(null, result); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment