Skip to content

Commit

Permalink
fix: Resource path should contain wildcards
Browse files Browse the repository at this point in the history
  • Loading branch information
Danilo Campana Fuchs committed May 18, 2020
1 parent 79c05b5 commit 315e7d7
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
Expand Up @@ -44,7 +44,7 @@ export default function createAuthScheme(authorizerOptions, provider, lambda) {
const accountId = 'random-account-id'
const apiId = 'random-api-id'
const httpMethod = request.method.toUpperCase()
const resourcePath = request.path.replace(
const resourcePath = request.route.path.replace(
new RegExp(`^/${provider.stage}`),
'',
)
Expand Down
Expand Up @@ -184,7 +184,7 @@ export default class LambdaProxyIntegrationEvent {
resourcePath: route.path,
stage: this.#stage,
},
resource: this.#path,
resource: route.path,
stageVariables: null,
}
}
Expand Down

0 comments on commit 315e7d7

Please sign in to comment.