news.php 951 B

12345678910111213141516171819202122232425
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2018-2020 rights reserved.
  6. // +----------------------------------------------------------------------
  7. // |
  8. // +----------------------------------------------------------------------
  9. // | Date: 2020-09-06 21:52
  10. // +----------------------------------------------------------------------
  11. use think\facade\Route;
  12. //@展示信息管理
  13. Route::group('news', function () {
  14. //@公告列表
  15. Route::post('list','v1.news/list');
  16. //@公告添加
  17. Route::post('add','v1.news/add');
  18. //@公告删除
  19. Route::post('del','v1.news/del');
  20. })->middleware([
  21. \app\system\middleware\AllowOriginMiddleware::class,
  22. \app\system\middleware\AdminAuthTokenMiddleware::class,
  23. \app\system\middleware\AdminCkeckRoleMiddleware::class,
  24. ]);