리팩토링
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { type APINamespaceType, ngGET } from "../defs";
|
||||
import { type APINamespaceType, GET as GET } from "../defs";
|
||||
import type { structure } from "../../apiStructure/sammoRootAPI";
|
||||
import type { DefAPINamespace, ExtractError, ExtractQuery, ExtractResponse } from "../../apiStructure/defs";
|
||||
import { StartSession } from "../ProcDecorator/StartSession";
|
||||
@@ -12,7 +12,7 @@ const procDecorator = [
|
||||
StartSession,
|
||||
] as const;
|
||||
|
||||
export const ReqNonce = ngGET<RType, EType, QType>(argValidator)(procDecorator)(
|
||||
export const ReqNonce = GET<RType, EType, QType>(argValidator)(procDecorator)(
|
||||
async (query, ctx) => {
|
||||
const nonce = await ctx.getValue<string>("nonce");
|
||||
if(nonce !== undefined){
|
||||
|
||||
Reference in New Issue
Block a user