think/packages/client/src/services/user.ts

7 lines
208 B
TypeScript
Raw Normal View History

2022-02-20 11:51:55 +00:00
import type { IUser } from "@think/share";
import { HttpClient } from "./HttpClient";
export const register = (data: Partial<IUser>): Promise<IUser> => {
return HttpClient.post("/user/register", data);
};