Skip to content

Instantly share code, notes, and snippets.

@cal0610
Created November 2, 2022 08:34
Show Gist options
  • Save cal0610/167fa15b0f60357106e50dc637308587 to your computer and use it in GitHub Desktop.
Save cal0610/167fa15b0f60357106e50dc637308587 to your computer and use it in GitHub Desktop.
updating the lambda to use cognito authorizer
store.addMethod('POST', createOneIntegration, { ...authorizer });
store.addMethod('GET', getAllIntegration, { ...authorizer });
const singleStore = store.addResource('{id}');
singleStore.addMethod('GET', getOneIntegration, { ...authorizer });
singleStore.addMethod('PATCH', updateOneIntegration, { ...authorizer });
singleStore.addMethod('DELETE', deleteOneIntegration, { ...authorizer });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment