fix(fer-19) : restreindre /pont_bascule/health aux utilisateurs connectes

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-21 14:22:56 +02:00
parent 8a66336da3
commit d7a17cb762

View File

@@ -19,6 +19,7 @@ use Symfony\Component\Serializer\Attribute\Groups;
description: 'Returns the connection state of the pont-bascule. Always 200, even when unreachable.', description: 'Returns the connection state of the pont-bascule. Always 200, even when unreachable.',
), ),
normalizationContext: ['groups' => ['pont_bascule:health:read']], normalizationContext: ['groups' => ['pont_bascule:health:read']],
security: "is_granted('ROLE_USER')",
provider: PontBasculeHealthProvider::class, provider: PontBasculeHealthProvider::class,
), ),
], ],