// +--------------------------------------------------------------------------------- use think\facade\Route; Route::group('api', function() { {$API_RULE} //MISS路由定义 Route::miss('api.Miss/index'); })->middleware(app\middleware\ApiResponse::class);