summaryrefslogtreecommitdiff
path: root/src-migrate/services/auth.ts
blob: f2fd77610d788d3e991895136af6a0e8d7b3c569 (plain)
1
2
3
4
5
6
7
8
9
10
import odooApi from '~/common/libs/odooApi';
import { RegisterApiProps, RegisterProps } from '~/common/types/auth';

export const registerUser = async (
  data: RegisterProps
): Promise<RegisterApiProps> => {
  const response = await odooApi('POST', '/api/v1/user/register', data);

  return response;
};