diff --git a/Section 19/End/aws-microservices/src/product/index.js b/Section 19/End/aws-microservices/src/product/index.js index 6235083..5ba9a53 100644 --- a/Section 19/End/aws-microservices/src/product/index.js +++ b/Section 19/End/aws-microservices/src/product/index.js @@ -7,6 +7,8 @@ exports.handler = async function(event) { console.log("request:", JSON.stringify(event, undefined, 2)); try { + let body = null; + switch (event.httpMethod) { case "GET": if(event.queryStringParameters != null) { @@ -191,4 +193,4 @@ const getProductsByCategory = async (event) => { console.error(e); throw e; } -} \ No newline at end of file +}