the-ldk
Version:
Welcome to the LDK! A collection of custom AWS CDK constructs to help you build serverless applications faster.
18 lines • 718 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExampleAPIGatewayStack = void 0;
const aws_cdk_lib_1 = require("aws-cdk-lib");
const APIGateway_1 = require("../../constructs/APIGateway/APIGateway");
class ExampleAPIGatewayStack extends aws_cdk_lib_1.NestedStack {
constructor(scope, id, props) {
super(scope, id, props);
const apiGateway = new APIGateway_1.APIGateway(this, id, {
serviceName: 'ldk-example',
env: 'dev',
});
this.restAPI = apiGateway.restAPI;
apiGateway.restAPI.root.addMethod('OPTIONS');
}
}
exports.ExampleAPIGatewayStack = ExampleAPIGatewayStack;
//# sourceMappingURL=APIGatewayStack.js.map