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 10a7ba6 commit 16319a3Copy full SHA for 16319a3
application/index.js
@@ -4,5 +4,5 @@ export async function handler(event, context) {
4
console.log("EVENT: \n" + JSON.stringify(event, null, 2));
5
console.log("CONTEXT: \n" + JSON.stringify(context, null, 2));
6
7
- return Router(event, context);
+ return await Router(event, context);
8
}
application/routes.js
@@ -22,10 +22,10 @@ async function routeHandler(event, context) {
22
23
switch (routeKey) {
24
case "/_GET":
25
- return index();
+ return await index();
26
case "/_POST":
27
var body = JSON.parse(event.body);
28
- return greet(body.name);
+ return await greet(body.name);
29
default:
30
return {
31
statusCode: 404,
0 commit comments