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 @@ -92,7 +92,10 @@ export class RestApiConstruct extends Construct {
92
92
// Add resource and methods for this route
93
93
const resource = this . addNestedResource ( this . api . root , path ) ;
94
94
for ( const method of methods ) {
95
- resource . addMethod ( method . method , new apiGateway . LambdaIntegration ( handler ) ) ;
95
+ resource . addMethod (
96
+ method . method ,
97
+ new apiGateway . LambdaIntegration ( handler ) ,
98
+ ) ;
96
99
}
97
100
}
98
101
}
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ export type AuthorizerConfig =
21
21
| { type : 'userPool' } // signed-in users
22
22
| { type : 'userPool' ; groups : string [ ] } ; // signed-in + group restriction
23
23
24
-
25
24
export type MethodsProps = {
26
25
method : HttpMethod ;
27
26
authorizer ?: AuthorizerConfig ;
You can’t perform that action at this time.
0 commit comments