mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: merging the domain refresh endpoint with the GET endpoint
This commit is contained in:
@@ -67,7 +67,7 @@ readonly class RDAPService
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
private function registerDomain(string $fqdn): void
|
||||
public function registerDomain(string $fqdn): Domain
|
||||
{
|
||||
$idnDomain = idn_to_ascii($fqdn);
|
||||
$tld = $this->getTld($idnDomain);
|
||||
@@ -178,6 +178,7 @@ readonly class RDAPService
|
||||
$this->em->persist($domain);
|
||||
$this->em->flush();
|
||||
|
||||
return $domain;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user