api 구조 변경

This commit is contained in:
2023-08-18 13:11:59 +00:00
parent bfe0b99d44
commit de0b851217
8 changed files with 70 additions and 53 deletions
+7 -8
View File
@@ -11,12 +11,11 @@ type EType = ExtractError<BaseAPI>;
type QType = ExtractQuery<BaseAPI>;
const argValidator = undefined;
export const ReqNonce = GET<RType, EType, QType>
(argValidator)
(declProcDecorators([
StartSession,
ReqLogin,
] as const))
((query, ctx) => {
export const ReqNonce = GET<RType, EType, QType>(argValidator)(declProcDecorators(
StartSession,
ReqLogin,
))(
(query, ctx) => {
throw new Error("Method not implemented.");
});
}
);