test_lgq/niucloud/app/api/route/article.php
2024-01-24 17:36:08 +08:00

38 lines
1.5 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.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('article', 'article.Article/lists');
//文章详情
Route::get('article/:id', 'article.Article/info');
//文章
Route::get('article/all', 'article.Article/all');
/***************************************************** 文章分类管理 ****************************************************/
//文章分类列表
Route::get('category', 'article.ArticleCategory/lists');
//文章分类详情
Route::get('category/:id', 'article.ArticleCategory/info');
})->middleware(ApiChannel::class)
->middleware(ApiCheckToken::class, false)
->middleware(ApiLog::class);