12345678910111213141516171819202122232425262728293031 |
- <?php
- // +----------------------------------------------------------------------
- // | [ WE CAN DO IT MORE SIMPLE ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2018-2020 rights reserved.
- // +----------------------------------------------------------------------
- // |
- // +----------------------------------------------------------------------
- // | Date: 2020-08-30 14:41
- // +----------------------------------------------------------------------
- use think\facade\Route;
- //@权限设置
- Route::group('role', function () {
- //@角色列表
- Route::rule('list', 'role/list');
- //@修改角色
- Route::post('save','role/save');
- //@删除角色
- Route::post('del','role/del');
- //@权利配置
- Route::rule('setingList','role/setingList');
- //@角色权限
- Route::rule('setingSave','role/setingSave');
- })->middleware([
- \app\system\middleware\AllowOriginMiddleware::class,
- \app\system\middleware\AdminAuthTokenMiddleware::class,
- \app\system\middleware\AdminCkeckRoleMiddleware::class
- ]);
|