infrastructure-components
Version:
Infrastructure-Components configure the infrastructure of your React-App as part of your React-Components.
16 lines (12 loc) • 458 B
JavaScript
module.exports = function cleanupEvent(evt) {
const event = evt || {};
event.httpMethod = event.httpMethod || 'GET';
event.path = event.path || '/';
event.body = event.body || '';
event.headers = event.headers || {};
event.requestContext = event.requestContext || {};
event.requestContext.path = event.requestContext.path || event.path;
event.requestContext.identity = event.requestContext.identity || {};
return event;
};
;