리팩토링

This commit is contained in:
2023-08-08 17:54:19 +00:00
parent 13d9662439
commit 1214036091
7 changed files with 80 additions and 78 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { ngPOST } from "../defs";
import { POST } from "../defs";
import type { structure } from "../../apiStructure/sammoRootAPI";
import type { ExtractError, ExtractQuery, ExtractResponse } from "../../apiStructure/defs";
import { StartSession } from "../ProcDecorator/StartSession";
@@ -18,7 +18,7 @@ const procDecorator = [
StartSession,
] as const;
export const LoginByToken = ngPOST<RType, EType, QType>(ArgValidator)(procDecorator)(
export const LoginByToken = POST<RType, EType, QType>(ArgValidator)(procDecorator)(
async (query, ctx) => {
query.hashedToken;
ctx.clearSession();