group(function () use ($router){ // wind路由 $router->get('wind/getWindList', '\catchAdmin\wind\controller\Wind@getWindList'); $router->get('wind/getWindOptions', '\catchAdmin\wind\controller\Wind@getWindOptions'); $router->resource('wind', '\catchAdmin\wind\controller\Wind'); $router->resource('fan', '\catchAdmin\wind\controller\Fan'); $router->get('getFanListById','\catchAdmin\wind\controller\Fan@getList'); })->middleware('auth');