mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: do not register anonymous entities
This commit is contained in:
@@ -4,7 +4,6 @@ namespace App\Entity;
|
||||
|
||||
use ApiPlatform\Metadata\ApiResource;
|
||||
use ApiPlatform\Metadata\Get;
|
||||
use ApiPlatform\Metadata\GetCollection;
|
||||
use App\Repository\NameserverRepository;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
@@ -15,6 +14,7 @@ use Symfony\Component\Serializer\Attribute\SerializedName;
|
||||
#[ORM\Entity(repositoryClass: NameserverRepository::class)]
|
||||
#[ApiResource(
|
||||
operations: [
|
||||
/*
|
||||
new GetCollection(
|
||||
uriTemplate: '/nameservers',
|
||||
normalizationContext: [
|
||||
@@ -23,6 +23,7 @@ use Symfony\Component\Serializer\Attribute\SerializedName;
|
||||
],
|
||||
]
|
||||
),
|
||||
*/
|
||||
new Get(
|
||||
uriTemplate: '/nameservers/{ldhName}',
|
||||
normalizationContext: [
|
||||
|
||||
Reference in New Issue
Block a user