Skip to content

Commit aa83e3d

Browse files
committed
add authorizer to the api config (no logic implemented)
1 parent 4f749b9 commit aa83e3d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/rest-api-construct/src/construct.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ export class RestApiConstruct extends Construct {
9292
// Add resource and methods for this route
9393
const resource = this.addNestedResource(this.api.root, path);
9494
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+
);
9699
}
97100
}
98101
}

packages/rest-api-construct/src/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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-
2524
export type MethodsProps = {
2625
method: HttpMethod;
2726
authorizer?: AuthorizerConfig;

0 commit comments

Comments
 (0)