From 2c28a4ad1d466ac5161d6adee5dd3efe20e2c540 Mon Sep 17 00:00:00 2001 From: matthieu Date: Sun, 15 Mar 2026 19:59:47 +0100 Subject: [PATCH] fix(notification) : add route priority to prevent API Platform conflict Co-Authored-By: Claude Opus 4.6 (1M context) --- src/Controller/MarkAllReadController.php | 2 +- src/Controller/NotificationUnreadCountController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/MarkAllReadController.php b/src/Controller/MarkAllReadController.php index ece0497..a745051 100644 --- a/src/Controller/MarkAllReadController.php +++ b/src/Controller/MarkAllReadController.php @@ -17,7 +17,7 @@ class MarkAllReadController extends AbstractController private readonly NotificationRepository $notificationRepository, ) {} - #[Route('/api/notifications/mark-all-read', name: 'notification_mark_all_read', methods: ['POST'])] + #[Route('/api/notifications/mark-all-read', name: 'notification_mark_all_read', methods: ['POST'], priority: 1)] #[IsGranted('IS_AUTHENTICATED_FULLY')] public function __invoke(): Response { diff --git a/src/Controller/NotificationUnreadCountController.php b/src/Controller/NotificationUnreadCountController.php index dc3669f..f4c6d82 100644 --- a/src/Controller/NotificationUnreadCountController.php +++ b/src/Controller/NotificationUnreadCountController.php @@ -17,7 +17,7 @@ class NotificationUnreadCountController extends AbstractController private readonly NotificationRepository $notificationRepository, ) {} - #[Route('/api/notifications/unread-count', name: 'notification_unread_count', methods: ['GET'])] + #[Route('/api/notifications/unread-count', name: 'notification_unread_count', methods: ['GET'], priority: 1)] #[IsGranted('IS_AUTHENTICATED_FULLY')] public function __invoke(): JsonResponse {