// +---------------------------------------------------------------------- use think\facade\Route; // //Route::get('/swagger', function() { // $openapi = \OpenApi\scan('../app/api/controller/v1'); // // header('Content-Type: application/json'); // echo $openapi->toJson(); //})->middleware(function($request,\Closure $next){ // return $next($request);});