group(function () use ($router){ // api路由 $router->resource('api', '\catchAdmin\api\controller\Api'); })->middleware('auth');