12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- // +----------------------------------------------------------------------
- // | Niucloud-admin 企业快速开发的saas管理平台
- // +----------------------------------------------------------------------
- // | 官方网址:https://www.niucloud.com
- // +----------------------------------------------------------------------
- // | niucloud团队 版权所有 开源版本可自由商用
- // +----------------------------------------------------------------------
- // | Author: Niucloud Team
- // +----------------------------------------------------------------------
- use app\api\middleware\ApiChannel;
- use app\api\middleware\ApiCheckToken;
- use app\api\middleware\ApiLog;
- use think\facade\Route;
- /**
- * 文章管理
- */
- Route::group('article', function() {
- /***************************************************** 文章管理 ****************************************************/
- //文章列表
- Route::get('list', 'article.Article/lists');
- //文章详情
- Route::get(':id', 'article.Article/info');
- //文章
- Route::get('all', 'article.Article/all');
- //文章热门资讯
- Route::get('hot', 'article.Article/hot');
- // 增加文章访问量
- Route::put('incVisit/:id', 'article.Article/incVisit');
- /***************************************************** 文章分类管理 ****************************************************/
- //文章分类列表
- Route::get('category', 'article.ArticleCategory/lists');
- //文章分类详情
- Route::get('category/:id', 'article.ArticleCategory/info');
- })->middleware(ApiChannel::class)
- ->middleware(ApiCheckToken::class, false)
- ->middleware(ApiLog::class);
|