From 09120c1fb76f0a474227b6de954645ed8a2dfad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Thu, 18 Jul 2024 03:03:46 +0200 Subject: [PATCH] fix: update API --- config/packages/security.yaml | 1 - src/Entity/Domain.php | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/packages/security.yaml b/config/packages/security.yaml index a585dde..c940005 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -34,7 +34,6 @@ security: access_control: - { path: ^/api/login, roles: PUBLIC_ACCESS } - { path: ^/api$, roles: PUBLIC_ACCESS } - - { path: ^/api, roles: IS_AUTHENTICATED_FULLY } # - { path: ^/admin, roles: ROLE_ADMIN } # - { path: ^/profile, roles: ROLE_USER } diff --git a/src/Entity/Domain.php b/src/Entity/Domain.php index 6a32956..aa9618d 100644 --- a/src/Entity/Domain.php +++ b/src/Entity/Domain.php @@ -36,7 +36,8 @@ use Symfony\Component\Serializer\Attribute\Groups; 'event:list', 'entity:list', 'domain-entity:entity', - 'nameserver-entity:nameserver' + 'nameserver-entity:nameserver', + 'nameserver-entity:entity' ] ] ),