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 2722ce0 commit b9d7519Copy full SHA for b9d7519
middleware.js
@@ -1,4 +1,4 @@
1
-module.exports.eventContext = options => (req, res, next) => {
+module.exports.eventContext = options => function apiGatewayEventParser (req, res, next) {
2
options = options || {} // defaults: {reqPropKey: 'apiGateway', deleteHeaders: true}
3
const reqPropKey = options.reqPropKey || 'apiGateway'
4
const deleteHeaders = options.deleteHeaders === undefined ? true : options.deleteHeaders
0 commit comments