// +---------------------------------------------------------------------- use think\facade\Route; /** * 组件 小插件 相关路由 */ Route::group('widget', function () { })->middleware([ \app\http\middleware\AllowOriginMiddleware::class, \app\adminapi\middleware\AdminAuthTokenMiddleware::class, \app\adminapi\middleware\AdminCheckRoleMiddleware::class, \app\adminapi\middleware\AdminLogMiddleware::class ]);