We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e0192f commit 4f3bce9Copy full SHA for 4f3bce9
application/routes.js
@@ -15,9 +15,9 @@ async function greet(name) {
15
}
16
17
async function routeHandler(event, context) {
18
- const { pathRaw, httpMethod } = event;
+ var { path, httpMethod } = event;
19
const pathPrefix = process.env.PATH_PREFIX || "/hello";
20
- const path = pathRaw.replace(pathPrefix, "") || "/";
+ path = path.replace(pathPrefix, "") || "/";
21
const routeKey = `${path}_${httpMethod}`;
22
23
switch (routeKey) {
0 commit comments