From 889010b5ad902fea698017b23f4cd0ba699b9a21 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 3 Sep 2025 14:39:06 +0200 Subject: [PATCH] Refactor --- src/Controller/OrganizationController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/OrganizationController.php b/src/Controller/OrganizationController.php index c98c354..4274fb9 100644 --- a/src/Controller/OrganizationController.php +++ b/src/Controller/OrganizationController.php @@ -140,8 +140,8 @@ class OrganizationController extends AbstractController ]); } - #[Route(path: '/{id}', name: 'show', methods: ['GET'])] - public function show($id) + #[Route(path: '/view/{id}', name: 'show', methods: ['GET'])] + public function view($id) { $this->denyAccessUnlessGranted('ROLE_ADMIN'); $organization = $this->entityManager->getRepository(Organizations::class)->find($id);