Skip to content

Commit 53d6ffe

Browse files
committed
add authorizer to the api config (no logic implemented)
1 parent 6018956 commit 53d6ffe

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
@@ -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
}

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)