diff --git a/src/handlers/save-data/app.js b/src/handlers/save-data/app.js index 108a1f2..edb0448 100644 --- a/src/handlers/save-data/app.js +++ b/src/handlers/save-data/app.js @@ -5,9 +5,6 @@ const tableName = process.env.DATA_TABLE; const crypto = require("crypto"); exports.lambdaHandler = async (event, context) => { - if (event.httpMethod !== 'POST') { - throw new Error(`postMethod only accepts POST method, you tried: ${event.httpMethod} method.`); - } console.info('table name:', tableName); const body = JSON.parse(event.body)