We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f1db57 commit 80d4c10Copy full SHA for 80d4c10
src/handlers/save-data/app.js
@@ -5,9 +5,6 @@ const tableName = process.env.DATA_TABLE;
5
const crypto = require("crypto");
6
7
exports.lambdaHandler = async (event, context) => {
8
- if (event.httpMethod !== 'POST') {
9
- throw new Error(`postMethod only accepts POST method, you tried: ${event.httpMethod} method.`);
10
- }
11
console.info('table name:', tableName);
12
13
const body = JSON.parse(event.body)
0 commit comments