9 lines
281 B
TypeScript
Raw Normal View History

2021-06-11 17:46:26 +08:00
import { ApiCall } from "tsrpc";
import { ReqTest, ResTest } from "../shared/protocols/PtlTest";
export async function ApiTest(call: ApiCall<ReqTest, ResTest>) {
2021-06-14 17:45:11 +08:00
let testSession = await call.getSession('testSession');
call.succ({
testSession: testSession
});
2021-06-11 17:46:26 +08:00
}