Skip to content

Commit

Permalink
fix issue introduced by dherault#980
Browse files Browse the repository at this point in the history
  • Loading branch information
zoellner committed May 7, 2024
1 parent 925edf8 commit 9a4de27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/events/http/createAuthScheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function createAuthScheme(authorizerOptions, provider, lambda) {
const requestId = "random-request-id"

const httpMethod = request.method.toUpperCase()
const resourcePath = request.route.path.replace(
const resourcePath = request.path.replace(
new RegExp(`^/${provider.stage}`),
"",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default class LambdaProxyIntegrationEvent {
// NOTE replace * added by generateHapiPath util so api gateway event is accurate
const resource =
this.#routeKey ||
route.path.replace(`/${this.#stage}`, "").replace("*", "+")
this.#path.replace(`/${this.#stage}`, "").replace("*", "+")

return {
body,
Expand Down

0 comments on commit 9a4de27

Please sign in to comment.