Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit fdbe298

Browse files
authored
Add new API
1 parent a513586 commit fdbe298

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/base/auth.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export class ManagerAuth extends ApiConnection {
216216
* @param email The user's email address
217217
*/
218218
enableLetsEncrypt(email: string) {
219-
return this.post<void>("enable-letsencrypt", {
219+
return this.post<void>("letsencrypt", {
220220
email,
221221
acceptedTos: true,
222222
});
@@ -231,12 +231,18 @@ export class ManagerAuth extends ApiConnection {
231231
}
232232

233233
addDomain(app: string, domain: string) {
234-
return this.post<void>("add-domain", {
234+
return this.post<void>("domain", {
235235
app,
236236
domain,
237237
});
238238
}
239239

240+
removeDomain(app: string) {
241+
return this.delete<void>("domain", {
242+
app,
243+
});
244+
}
245+
240246
ipAddr() {
241247
return this.get<string>("ip-addr");
242248
}

0 commit comments

Comments
 (0)