test_lgq/niucloud/app/adminapi/route/auth.php

44 lines
1.7 KiB
PHP
Raw Normal View History

2024-01-24 17:36:08 +08:00
<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
use app\adminapi\middleware\AdminCheckRole;
use app\adminapi\middleware\AdminCheckToken;
use app\adminapi\middleware\AdminLog;
use think\facade\Route;
/**
* 路由
*/
Route::group('auth', function () {
/***************************************************** 授权信息 ****************************************************/
Route::put('logout', 'login.Login/logout');
/***************************************************** 授权信息 ****************************************************/
//授权用户站点菜单
Route::get('authmenu', 'auth.Auth/authMenuList');
//授权用户站点应用
Route::get('authaddon', 'auth.Auth/getAuthAddonList');
//授权用户信息
Route::get('get', 'auth.Auth/get');
//授权用户信息
Route::put('modify/:field', 'auth.Auth/modify');
//授权用户信息
Route::put('edit', 'auth.Auth/edit');
//授权站点信息
Route::get('site', 'auth.Auth/site');
//站点可以显示的菜单
Route::get('site/showmenu', 'auth.Auth/getShowMenuList');
})->middleware([
AdminCheckToken::class,
AdminCheckRole::class,
AdminLog::class
]);