Skip to content

Commit 4f3bce9

Browse files
committed
fix(app): destruct the right keys
1 parent 6e0192f commit 4f3bce9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application/routes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ async function greet(name) {
1515
}
1616

1717
async function routeHandler(event, context) {
18-
const { pathRaw, httpMethod } = event;
18+
var { path, httpMethod } = event;
1919
const pathPrefix = process.env.PATH_PREFIX || "/hello";
20-
const path = pathRaw.replace(pathPrefix, "") || "/";
20+
path = path.replace(pathPrefix, "") || "/";
2121
const routeKey = `${path}_${httpMethod}`;
2222

2323
switch (routeKey) {

0 commit comments

Comments
 (0)