fix: Symfony interprets the TLD of the domain name as a return type

This commit is contained in:
Maël Gangloff
2024-07-18 15:47:33 +02:00
parent dd9fcd99c7
commit 271e642ac7

View File

@@ -28,6 +28,7 @@ use Symfony\Component\Serializer\Attribute\Groups;
]
),
new Get(
uriTemplate: '/domains/{ldhName}', # Do not delete this line, otherwise Symfony interprets the TLD of the domain name as a return type
normalizationContext: [
'groups' => [
'domain:item',