sys.php 838 B

12345678910111213141516171819202122
  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('sys', function () {
  13. //切换基本设置
  14. Route::rule('index', 'v1.sys/index');
  15. //保存基本设置
  16. Route::rule('save','v1.sys/save');
  17. })->middleware([
  18. \app\admin\middleware\AllowOriginMiddleware::class,
  19. \app\admin\middleware\AdminAuthTokenMiddleware::class
  20. ]);