This commit is contained in:
ryan
2026-07-13 15:08:40 +08:00
parent 08e8eea932
commit 1eff7878a1
441 changed files with 26491 additions and 18405 deletions
@@ -2,7 +2,8 @@ import {OpenFlareBaseService} from './base.service';
import type {DnsAccountItem, DnsAccountMutationPayload} from './types';
export class DnsAccountService extends OpenFlareBaseService {
protected static override readonly basePath: string = '/api/v1/d/dns-accounts';
protected static override readonly basePath: string =
'/api/v1/d/dns-accounts';
static async list(): Promise<DnsAccountItem[]> {
return this.get<DnsAccountItem[]>('/');
@@ -24,4 +25,4 @@ export class DnsAccountService extends OpenFlareBaseService {
static async deleteById(id: number): Promise<void> {
return this.post<void>(`/${id}/delete`);
}
}
}