|
|
@@ -3,6 +3,7 @@ declare (strict_types=1);
|
|
|
|
|
|
namespace App\Entity\Organization;
|
|
|
|
|
|
+use ApiPlatform\Action\NotFoundAction;
|
|
|
use ApiPlatform\Metadata\Post;
|
|
|
use ApiPlatform\Metadata\GetCollection;
|
|
|
use ApiPlatform\Metadata\Put;
|
|
|
@@ -23,7 +24,13 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|
|
/**
|
|
|
* Sous-domaine enregistré par une organisation
|
|
|
*/
|
|
|
-#[ApiResource]
|
|
|
+#[ApiResource(operations: [
|
|
|
+ new Get(
|
|
|
+ controller: NotFoundAction::class,
|
|
|
+ read: false,
|
|
|
+ output: false
|
|
|
+ ),
|
|
|
+])]
|
|
|
//#[Auditable]
|
|
|
#[ORM\Entity(repositoryClass: SubdomainRepository::class)]
|
|
|
#[OrganizationDefaultValue(fieldName: "organization")]
|