]> git.r.bdr.sh - rbdr/captura-backend-example/commitdiff
Adds handler type main
authorEssau <redacted>
Thu, 30 Nov 2023 03:48:49 +0000 (21:48 -0600)
committerRuben Beltran del Rio <redacted>
Tue, 12 Dec 2023 13:44:59 +0000 (14:44 +0100)
src/index.js

index bae1fc0e5818cb827e55a6647da5919f87182991..11e400bd6708e16eae291a045260b254d700b28e 100644 (file)
@@ -1,5 +1,8 @@
 const { S3Client, PutObjectCommand } = require('@aws-sdk/client-s3');
 
 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;
 module.exports.handler = async (event) => {
   const data = Buffer.from(event.body, 'base64');
   let fileExtension;