mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 00:51:20 +00:00
chore: Remove unused function for Cloudflare provider
This commit is contained in:
parent
e418a58e5b
commit
0d49b89e43
|
@ -217,26 +217,6 @@ class CloudflareApi extends DnsProviderApi {
|
|||
return GenericResult(success: true, data: null);
|
||||
}
|
||||
|
||||
Future<void> setDnsRecord(
|
||||
final DnsRecord record,
|
||||
final ServerDomain domain,
|
||||
) async {
|
||||
final String domainZoneId = domain.zoneId;
|
||||
final String url = '$rootAddress/zones/$domainZoneId/dns_records';
|
||||
|
||||
final Dio client = await getClient();
|
||||
try {
|
||||
await client.post(
|
||||
url,
|
||||
data: record.toJson(),
|
||||
);
|
||||
} catch (e) {
|
||||
print(e);
|
||||
} finally {
|
||||
close(client);
|
||||
}
|
||||
}
|
||||
|
||||
Future<GenericResult<List>> getDomains() async {
|
||||
final String url = '$rootAddress/zones';
|
||||
List domains = [];
|
||||
|
|
Loading…
Reference in a new issue