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 {
56
56
// Add resource and methods for this route
57
57
const resource = this . addNestedResource ( this . api . root , path ) ;
58
58
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
+ ) ;
60
63
}
61
64
}
62
65
}
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