123456789101112131415161718192021222324252627282930313233343536 |
- <?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('admin', function () {
- //@退出管理系统
- Route::rule('logout', 'admin/logout');
- //@获取管理信息[当前登录用户]
- Route::post('info','admin/info');
- //@修改管理信息[当前登录用户]
- Route::post('edit','admin/edit');
- //@修改管理密码[当前登录用户]
- Route::post('password','admin/password');
- //@获取列表
- Route::post('list','admin/list');
- //@修改信息
- Route::post('save','admin/save');
- //@删除信息
- Route::post('del','admin/del');
- //@获取详情信息
- Route::post('getInfo','admin/getInfo');
- })->middleware([
- \app\system\middleware\AllowOriginMiddleware::class,
- \app\system\middleware\AdminAuthTokenMiddleware::class,
- \app\system\middleware\AdminCkeckRoleMiddleware::class
- ]);
|