Skip to content

Commit

Permalink
Merge pull request #79 from steveyiyo/main
Browse files Browse the repository at this point in the history
backend responds useless info for admin dashboard api
  • Loading branch information
LeeLin2602 authored Feb 21, 2024
2 parents 95e4476 + 63f399a commit d55a233
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion images/flask/app/services/dns_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,12 @@ def list_domains(self):
domains = self.domains.list_all()
result = []
for domain in domains:
result.append(self.__get_domain_info(domain))
# The records information is not needed for this API.
data = self.__get_domain_info(domain)
del data["records"]
del data["glues"]
del data["dnskeys"]
result.append(data)
return result

def count_domain(self):
Expand Down

0 comments on commit d55a233

Please sign in to comment.