group(function () use ($router){ // api路由 $router->get('api/getUserList', '\catchAdmin\api\controller\Api@getUserList'); }); $router->get('api/getUsers', '\catchAdmin\api\controller\Api@getUserList'); $router->get('tool/getwrenchlist','\catchAdmin\api\controller\Tool@getWrenchList');