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

7 lines
210 B
TypeScript
Raw Normal View History

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