리팩토링
This commit is contained in:
@@ -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";
|
||||
@@ -19,7 +19,7 @@ const procDecorator = [
|
||||
StartSession,
|
||||
] as const;
|
||||
|
||||
export const LoginByID = ngPOST<RType, EType, QType>(ArgValidator)(procDecorator)(
|
||||
export const LoginByID = POST<RType, EType, QType>(ArgValidator)(procDecorator)(
|
||||
async (query, ctx, req, res) => {
|
||||
const username = query.username;
|
||||
const password = query.password;
|
||||
|
||||
Reference in New Issue
Block a user