Created
November 2, 2022 08:34
-
-
Save cal0610/167fa15b0f60357106e50dc637308587 to your computer and use it in GitHub Desktop.
updating the lambda to use cognito authorizer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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