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('carmi', function () {
|
|
|
|
|
|
|
|
|
|
/***************************************************** hello world ****************************************************/
|
|
|
|
|
Route::get('hello_world', 'addon\carmi\app\adminapi\controller\hello_world\Index@index');
|
2024-01-25 17:05:15 +08:00
|
|
|
|
Route::post('add', 'addon\carmi\app\adminapi\controller\carmi\Index@add');
|
|
|
|
|
Route::post('get', 'addon\carmi\app\adminapi\controller\carmi\Index@get');
|
|
|
|
|
Route::post('del', 'addon\carmi\app\adminapi\controller\carmi\Index@del');
|
2024-01-24 17:36:08 +08:00
|
|
|
|
})->middleware([
|
|
|
|
|
AdminCheckToken::class,
|
|
|
|
|
AdminCheckRole::class,
|
|
|
|
|
AdminLog::class
|
|
|
|
|
]);
|