aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEssau <essau@three-dimensional.space>2023-11-29 21:48:49 -0600
committerRuben Beltran del Rio <ruben@unlimited.pizza>2023-12-12 14:44:59 +0100
commitb6c1559c3a1281b1f648335fc8773cf763cdc3bd (patch)
tree9fbf577b0558cf7a283613169f3a89c62717d782 /src
parent1dbde60cee4c66f0d13203291b5c0c3a6f6d5bdb (diff)
Adds handler typeHEADmain
Diffstat (limited to 'src')
-rw-r--r--src/index.js3
1 files changed, 3 insertions, 0 deletions
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;