fix organization not loading
This commit is contained in:
parent
0a88ad0bde
commit
bcb0cbc9b9
|
|
@ -33,7 +33,7 @@ export default class extends Controller {
|
||||||
placeholder: "Aucun résultat trouvé pour cette recherche",
|
placeholder: "Aucun résultat trouvé pour cette recherche",
|
||||||
locale: "fr", //'en' for English, 'fr' for French (en is default, no need to include it)
|
locale: "fr", //'en' for English, 'fr' for French (en is default, no need to include it)
|
||||||
|
|
||||||
ajaxURL: `/organization/data/${this.userValue}`,
|
ajaxURL: `/organization/data`,
|
||||||
ajaxConfig: "GET",
|
ajaxConfig: "GET",
|
||||||
pagination: true,
|
pagination: true,
|
||||||
paginationMode: "remote",
|
paginationMode: "remote",
|
||||||
|
|
|
||||||
|
|
@ -301,8 +301,8 @@ class OrganizationController extends AbstractController
|
||||||
}
|
}
|
||||||
|
|
||||||
// API endpoint to fetch organization data for Tabulator
|
// API endpoint to fetch organization data for Tabulator
|
||||||
#[Route(path: '/data/{id}', name: 'data', methods: ['GET'])]
|
#[Route(path: '/data', name: 'data', methods: ['GET'])]
|
||||||
public function data(Request $request, int $id): JsonResponse
|
public function data(Request $request): JsonResponse
|
||||||
{
|
{
|
||||||
$this->denyAccessUnlessGranted('ROLE_ADMIN');
|
$this->denyAccessUnlessGranted('ROLE_ADMIN');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue