更新文章分类

This commit is contained in:
yaooo 2023-11-04 13:37:27 +08:00
parent 861b4cdca2
commit 79cb5ce04f
1 changed files with 7 additions and 0 deletions

View File

@ -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()
{ {