admin.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2018-2020 rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | [ 管理员管理 ]
  8. // +----------------------------------------------------------------------
  9. // | Date: 2020-08-30 14:41
  10. // +----------------------------------------------------------------------
  11. use think\facade\Route;
  12. //@管理员
  13. Route::group('admin', function () {
  14. //@退出管理系统
  15. Route::rule('logout', 'admin/logout');
  16. //@获取管理信息[当前登录用户]
  17. Route::post('info','admin/info');
  18. //@修改管理信息[当前登录用户]
  19. Route::post('edit','admin/edit');
  20. //@修改管理密码[当前登录用户]
  21. Route::post('password','admin/password');
  22. //@获取列表
  23. Route::post('list','admin/list');
  24. //@修改信息
  25. Route::post('save','admin/save');
  26. //@删除信息
  27. Route::post('del','admin/del');
  28. //@获取详情信息
  29. Route::post('getInfo','admin/getInfo');
  30. })->middleware([
  31. \app\system\middleware\AllowOriginMiddleware::class,
  32. \app\system\middleware\AdminAuthTokenMiddleware::class,
  33. \app\system\middleware\AdminCkeckRoleMiddleware::class
  34. ]);