Compare commits
2 Commits
d576c980d3
...
7c61e9e9f2
Author | SHA1 | Date | |
---|---|---|---|
7c61e9e9f2 | |||
7f975e64ce |
@ -26,10 +26,10 @@ class APISearchController extends AbstractController
|
||||
public function index(): Response
|
||||
{
|
||||
$datas = $this->search();
|
||||
|
||||
return $this->render('apiSearch/index.html.twig', [
|
||||
'controller_name' => 'APISearchController',
|
||||
'datas' => $datas,
|
||||
]);
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ class GoogleBooksService
|
||||
|
||||
// Convertir la réponse JSON en tableau PHP
|
||||
$dataArray = $response->toArray();
|
||||
|
||||
|
||||
return $dataArray;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user