1 2 3 4 5 6 7 8 9 10 11 12 13 14 15const hello = require('./lib/hello'); const response = require('./lib/response'); const helloFn = async (event) => { let body = event.body ? JSON.parse(event.body) : event; //api gateway (event.body) vs invoke (event) let result = hello(body); return response(result); } module.exports.hello = helloFn