Files
core_ng/server/api/Login/LoginByToken.ts
T
2023-08-06 11:02:03 +00:00

15 lines
627 B
TypeScript

import { POST } from "../defs";
import type { structure } from "../../apiStructure/sammoRootAPI";
import type { ExtractError, ExtractQuery, ExtractResponse } from "../../apiStructure/defs";
type BaseAPI = typeof structure.Login.LoginByToken;
type RType = ExtractResponse<BaseAPI>;
type EType = ExtractError<BaseAPI>;
type QType = ExtractQuery<BaseAPI>;
export class LoginByToken extends POST<RType, EType, QType>{
protected LoginByToken = Symbol("LoginByToken");//TODO: remove this
protected override async api(query: QType): Promise<RType | EType | true> {
throw new Error("Method not implemented.");
}
}