更新文章分类
This commit is contained in:
parent
861b4cdca2
commit
79cb5ce04f
|
@ -60,6 +60,13 @@ class ArticleIndex extends ApiController
|
||||||
$this->apiSuccess('获取成功', $content);
|
$this->apiSuccess('获取成功', $content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//查看文章分类
|
||||||
|
public function cate()
|
||||||
|
{
|
||||||
|
$cate = Db::name('ArticleCate')->order('id desc')->select()->toArray();
|
||||||
|
$this->apiSuccess('获取成功', $cate);
|
||||||
|
}
|
||||||
|
|
||||||
//查看文章详情
|
//查看文章详情
|
||||||
public function view()
|
public function view()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue