@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.
18 lines (15 loc) • 369 B
JavaScript
const { emptyResponseMapper } = require('../utils')
const getRequestValuesFromSelfManagedKafka = ({ event }) => {
const method = 'POST'
const headers = { host: 'self-managed-kafka' }
const body = event
return {
method,
headers,
body
}
}
module.exports = {
getRequest: getRequestValuesFromSelfManagedKafka,
getResponse: emptyResponseMapper
}