Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
apalchys committed Nov 27, 2023
1 parent 4f31b57 commit 0704b09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cdk/AngularCourseStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ export class AngularCourseStack extends cdk.Stack {
this.fqdn = `tasks.app.rs.school`;
this.url = `https://${this.fqdn}`;

const httpApi = new apiv2.HttpApi(this, "HttpApi");
const httpApi = new apiv2.HttpApi(this, "AngularTask");

for (const route of angularTaskApi) {
new apiv2.HttpRoute(this, `Route-${route.path}-${route.method}`, {
httpApi,
integration: new integration.HttpLambdaIntegration(
`Integration-${route.path}-${route.method}`,
new NodejsFunction(this, `Lambda-${route.lambdaName}`, {
new NodejsFunction(this, `AngularTask-${route.lambdaName}`, {
entry: `./src/functions/${route.lambdaName}.ts`,
memorySize: 256,
runtime: Runtime.NODEJS_20_X,
Expand Down

0 comments on commit 0704b09

Please sign in to comment.