Skip to content

Commit 28bee60

Browse files
authored
Merge pull request #17 from wesreid/feature/add-proxy-handling
use path instead
2 parents 402dff2 + 2908faa commit 28bee60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/lambda-route-proxy-entry-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const v2ApiGatewayEvent = (event: APIGatewayProxyEventV2): RouteEvent => {
5959
}
6060

6161
const v1ApiGatewayEvent = (event: APIGatewayProxyEvent, config: RouteConfig): RouteEvent => {
62-
const routeConfig = getRouteConfigByPath(event.resource, event.httpMethod, config.routes);
62+
const routeConfig = getRouteConfigByPath(event.path, event.httpMethod, config.routes);
6363
return {
6464
routeKey: `${event.httpMethod} ${routeConfig.path}`,
6565
queryStringParameters: event.queryStringParameters ?? {},

0 commit comments

Comments
 (0)