Skip to content

Commit

Permalink
fix: move url property to RestApiBase
Browse files Browse the repository at this point in the history
  • Loading branch information
hariprakash-j committed Oct 29, 2023
1 parent f397071 commit 0c88ca9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/aws-cdk-lib/aws-apigateway/lib/restapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,13 @@ export abstract class RestApiBase extends Resource implements IRestApi {
return this._domainName;
}

/**
* The deployed root URL of this REST API.
*/
public get url() {
return this.urlForPath();
}

/**
* The ID of this API Gateway RestApi.
*/
Expand Down Expand Up @@ -837,13 +844,6 @@ export class RestApi extends RestApiBase {
this.node.addValidation({ validate: () => this.validateRestApi() });
}

/**
* The deployed root URL of this REST API.
*/
public get url() {
return this.urlForPath();
}

/**
* Adds a new model.
*/
Expand Down

0 comments on commit 0c88ca9

Please sign in to comment.