12345678910111213141516171819202122 |
- <?php
- //
- //use think\facade\Route;
- //Route::get('articles1', 'articleController/getArticleList');
- //
- ////Route::group(function () {
- // //获取文章列表
- // Route::get('articles1', 'ArticleController/getArticleList');
- // //获取文章详情
- // Route::get('articles/:id', 'ArticleController/getArticleDetail');
- // //添加文章
- // Route::post('articles', 'ArticleController/addArticle');
- // //修改文章
- // Route::put('articles/:id', 'ArticleController/updateArticle');
- // //删除文章
- // Route::delete('articles/:id', 'ArticleController/deleteArticle');
- //
- //})->middleware([
- // \app\system\middleware\AllowOriginMiddleware::class,
- // \app\system\middleware\AdminAuthTokenMiddleware::class,
- // \app\system\middleware\AdminCkeckRoleMiddleware::class
- //]);
|