Skip to content

Commit 18cf349

Browse files
committed
feat: add network dns method
1 parent a138094 commit 18cf349

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.changeset/olive-islands-dance.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@squarecloud/api": minor
3+
---
4+
5+
New `Application#network#dns` method for getting DNS records status

src/managers/application/network.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,15 @@ export class ApplicationNetworkManager {
3333

3434
return data?.response;
3535
}
36+
37+
/**
38+
* Get the DNS records for your custom domain.
39+
*/
40+
async dns() {
41+
const data = await this.application.client.api.request(
42+
Routes.apps.network.dns(this.application.id),
43+
);
44+
45+
return data?.response;
46+
}
3647
}

0 commit comments

Comments
 (0)