import { ApiCall } from "tsrpc";
import { GHManage } from '../../public/gonghui/manage';
import { ReqList, ResList } from "../../shared/protocols/gonghui/PtlList";

export default async function (call: ApiCall<ReqList, ResList>) {

    call.succ(await (await GHManage.getGH(call.conn.gud.ghId)).getAllPlayers());
}