You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.4 KiB
37 lines
1.4 KiB
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | Niucloud-admin 企业快速开发的多应用管理平台
|
|
// +----------------------------------------------------------------------
|
|
// | 官方网址:https://www.niucloud.com
|
|
// +----------------------------------------------------------------------
|
|
// | niucloud团队 版权所有 开源版本可自由商用
|
|
// +----------------------------------------------------------------------
|
|
// | Author: Niucloud Team
|
|
// +----------------------------------------------------------------------
|
|
|
|
use app\api\middleware\ApiCheckToken;
|
|
use app\api\middleware\ApiLog;
|
|
use app\api\middleware\ApiChannel;
|
|
use think\facade\Route;
|
|
|
|
/**
|
|
* 会员管理系统
|
|
*/
|
|
Route::group('hygl', function() {
|
|
/***************************************************** hello world ****************************************************/
|
|
//http://hycrm.zeyan.wang/api/hygl/test
|
|
Route::get('test1', 'addon\hygl\app\api\controller\hello_world\Index@index');
|
|
Route::get('hello_world', 'addon\hygl\app\api\controller\hello_world\Index@index');
|
|
|
|
})->middleware(ApiChannel::class)
|
|
->middleware(ApiCheckToken::class, false) //false表示不验证登录
|
|
->middleware(ApiLog::class);
|
|
|
|
|
|
|
|
Route::group('hygl', function() {
|
|
|
|
})->middleware(ApiChannel::class)
|
|
->middleware(ApiCheckToken::class, true) //表示验证登录
|
|
->middleware(ApiLog::class);
|
|
|
|
|