Skip to content

Commit

Permalink
Update handler
Browse files Browse the repository at this point in the history
  • Loading branch information
marklise committed Oct 7, 2024
1 parent 4698672 commit 3ffb8d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions handlers/authorizer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ exports.handler = async function (event, context, callback) {

console.log("groups", groups);

let methodArn = `arn:aws:execute-api:ca-central-1:637423314715:6kbrprs1r7/api/*`;
const arnPrefix = methodArn.split(':').slice(0, 6);
const arnPrefix = event.methodArn.split(':').slice(0, 6);
const joinedArnPrefix = arnPrefix.slice(0, 5).join(':');
const apiIDString = arnPrefix[5];
const apiString = apiIDString.split('/')[0];
Expand Down

0 comments on commit 3ffb8d7

Please sign in to comment.