UNPKG

@codegenie/serverless-express

Version:

This library enables you to utilize AWS Lambda and Amazon API Gateway to respond to web and API requests using your existing Node.js application framework.

19 lines (15 loc) 358 B
const { emptyResponseMapper } = require('../utils') const getRequestValuesFromDynamoDB = ({ event }) => { const method = 'POST' const headers = { host: 'dynamodb.amazonaws.com' } const body = event return { method, headers, body } } module.exports = { getRequest: getRequestValuesFromDynamoDB, getResponse: emptyResponseMapper }