From: Essau Date: Thu, 30 Nov 2023 03:48:49 +0000 (-0600) Subject: Adds handler type X-Git-Url: https://git.r.bdr.sh/rbdr/captura-backend-example/commitdiff_plain/b6c1559c3a1281b1f648335fc8773cf763cdc3bd?ds=sidebyside;hp=1dbde60cee4c66f0d13203291b5c0c3a6f6d5bdb Adds handler type --- 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;