text: module.exports = () => ({
    before: (handler, next) => {
      const { event } = handler
  
      if (event.hasOwnProperty('httpMethod')) {
        event.queryStringParameters = event.queryStringParameters || {}
        event.multiValueQueryStringParameters = event.multiValueQueryStringParameters || {}
        event.pathParameters = event.pathParameters || {}
      }
  
      return next()
    }
  })
  