Skip to content

Commit

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

const baseUrl = "/angular";

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

for (const route of angularTaskApi) {
Expand All @@ -130,7 +132,10 @@ export class AngularCourseStack extends cdk.Stack {
},
})
),
routeKey: apiv2.HttpRouteKey.with(route.path, route.method),
routeKey: apiv2.HttpRouteKey.with(
`${baseUrl}${route.path}`,
route.method
),
});
}

Expand Down Expand Up @@ -191,6 +196,6 @@ export class AngularCourseStack extends cdk.Stack {
recordName: this.fqdn,
});

new CfnOutput(this, "Url", { value: this.url });
new CfnOutput(this, "API Url", { value: `${this.url}${baseUrl}` });
}
}

0 comments on commit 394eb50

Please sign in to comment.