File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/rest-api-construct/src Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,10 @@ export class RestApiConstruct extends Construct {
5656 // Add resource and methods for this route
5757 const resource = this . addNestedResource ( this . api . root , path ) ;
5858 for ( const method of methods ) {
59- resource . addMethod ( method . method , new apiGateway . LambdaIntegration ( handler ) ) ;
59+ resource . addMethod (
60+ method . method ,
61+ new apiGateway . LambdaIntegration ( handler ) ,
62+ ) ;
6063 }
6164 }
6265 }
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ export type AuthorizerConfig =
2121 | { type : 'userPool' } // signed-in users
2222 | { type : 'userPool' ; groups : string [ ] } ; // signed-in + group restriction
2323
24-
2524export type MethodsProps = {
2625 method : HttpMethod ;
2726 authorizer ?: AuthorizerConfig ;
You can’t perform that action at this time.
0 commit comments