12345678910111213141516171819202122 |
- <?php
- // +----------------------------------------------------------------------
- // | [ WE CAN DO IT MORE SIMPLE ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2018-2020 rights reserved.
- // +----------------------------------------------------------------------
- // | Author: TABLE ME
- // +----------------------------------------------------------------------
- // | Date: 2020-08-30 14:41
- // +----------------------------------------------------------------------
- use think\facade\Route;
- Route::group('sys', function () {
- //切换基本设置
- Route::rule('index', 'v1.sys/index');
- //保存基本设置
- Route::rule('save','v1.sys/save');
- })->middleware([
- \app\admin\middleware\AllowOriginMiddleware::class,
- \app\admin\middleware\AdminAuthTokenMiddleware::class
- ]);
|