log.php 913 B

12345678910111213141516171819202122232425
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2018-2020 rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Author: TABLE ME
  8. // +----------------------------------------------------------------------
  9. // | Date: 2020-08-30 14:41
  10. // +----------------------------------------------------------------------
  11. use think\facade\Route;
  12. Route::group('log', function () {
  13. //获取权限列表
  14. Route::rule('list', 'v1.log/list');
  15. //删除管理员信息
  16. Route::post('del','v1.log/del');
  17. //删除一个的数据
  18. Route::post('delMonth','v1.log/delMonth');
  19. })->middleware([
  20. \app\admin\middleware\AllowOriginMiddleware::class,
  21. \app\admin\middleware\AdminAuthTokenMiddleware::class
  22. ]);