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

7 lines
210 B
TypeScript
Raw Normal View History

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