X-Git-Url: https://git.r.bdr.sh/rbdr/captura-backend-example/blobdiff_plain/1dbde60cee4c66f0d13203291b5c0c3a6f6d5bdb..b6c1559c3a1281b1f648335fc8773cf763cdc3bd:/src/index.js?ds=sidebyside diff --git a/src/index.js b/src/index.js index bae1fc0..11e400b 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,8 @@ const { S3Client, PutObjectCommand } = require('@aws-sdk/client-s3'); +/** + * @type {import('aws-lambda').APIGatewayProxyHandler} + */ module.exports.handler = async (event) => { const data = Buffer.from(event.body, 'base64'); let fileExtension;