Refactor
This commit is contained in:
parent
a540bb5d9e
commit
889010b5ad
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue