feat: add domain register endpoint

This commit is contained in:
Maël Gangloff
2024-07-17 18:18:11 +02:00
parent 29253a47aa
commit 358cad6c21
4 changed files with 63 additions and 15 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Controller;
use App\Service\RDAPService;
use Exception;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
class DomainRefreshController extends AbstractController
{
/**
* @throws Exception
*/
public function __invoke(string $ldhName, RDAPService $RDAPService): void
{
$RDAPService->registerDomains([$ldhName]);
}
}