Fix search methods to work with new Request library
This commit is contained in:
parent
3bcb0442ca
commit
972d96c0e0
@ -205,7 +205,8 @@ class Anime extends BaseController {
|
|||||||
*/
|
*/
|
||||||
public function search()
|
public function search()
|
||||||
{
|
{
|
||||||
$query = $this->request->query->get('query');
|
$queryParams = $this->request->getQueryParams();
|
||||||
|
$query = $queryParams['query'];
|
||||||
$this->outputJSON($this->model->search($query));
|
$this->outputJSON($this->model->search($query));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,8 @@ class Collection extends BaseController {
|
|||||||
*/
|
*/
|
||||||
public function search()
|
public function search()
|
||||||
{
|
{
|
||||||
$query = $this->request->query->get('query');
|
$queryParams = $this->request->getQueryParams();
|
||||||
|
$query = $queryParams['query'];
|
||||||
$this->outputJSON($this->anime_model->search($query));
|
$this->outputJSON($this->anime_model->search($query));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user