|
|
@ -36,7 +36,7 @@ class Article extends Controller |
|
|
|
public function list(int $categoryId = 0): Json |
|
|
|
public function list(int $categoryId = 0): Json |
|
|
|
{ |
|
|
|
{ |
|
|
|
$model = new ArticleModel; |
|
|
|
$model = new ArticleModel; |
|
|
|
$title = (string)$this->request->input('title'); |
|
|
|
$title = (string)$this->request->get('title'); |
|
|
|
$list = $model->getList($categoryId, 15, $title); |
|
|
|
$list = $model->getList($categoryId, 15, $title); |
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|
} |
|
|
|
} |
|
|
|