test_lgq/niucloud/addon/test_plug/app/adminapi/route/route.php

30 lines
1.1 KiB
PHP
Raw Normal View History

2024-01-24 17:36:08 +08:00
<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的多应用管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
use think\facade\Route;
use app\adminapi\middleware\AdminCheckRole;
use app\adminapi\middleware\AdminCheckToken;
use app\adminapi\middleware\AdminLog;
/**
* 插件
*/
Route::group('test_plug', function () {
/***************************************************** hello world ****************************************************/
Route::get('hello_world', 'addon\test_plug\app\adminapi\controller\hello_world\Index@index');
})->middleware([
AdminCheckToken::class,
AdminCheckRole::class,
AdminLog::class
]);