Created
November 2, 2022 03:31
-
-
Save cal0610/f99aa30a0ff2d4358e254e048373fc5e to your computer and use it in GitHub Desktop.
attaching an authoriser to the endpoint
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