article.php 801 B

12345678910111213141516171819202122
  1. <?php
  2. //
  3. //use think\facade\Route;
  4. //Route::get('articles1', 'articleController/getArticleList');
  5. //
  6. ////Route::group(function () {
  7. // //获取文章列表
  8. // Route::get('articles1', 'ArticleController/getArticleList');
  9. // //获取文章详情
  10. // Route::get('articles/:id', 'ArticleController/getArticleDetail');
  11. // //添加文章
  12. // Route::post('articles', 'ArticleController/addArticle');
  13. // //修改文章
  14. // Route::put('articles/:id', 'ArticleController/updateArticle');
  15. // //删除文章
  16. // Route::delete('articles/:id', 'ArticleController/deleteArticle');
  17. //
  18. //})->middleware([
  19. // \app\system\middleware\AllowOriginMiddleware::class,
  20. // \app\system\middleware\AdminAuthTokenMiddleware::class,
  21. // \app\system\middleware\AdminCkeckRoleMiddleware::class
  22. //]);