summaryrefslogtreecommitdiff
path: root/src-migrate/services/auth.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src-migrate/services/auth.ts')
-rw-r--r--src-migrate/services/auth.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src-migrate/services/auth.ts b/src-migrate/services/auth.ts
new file mode 100644
index 00000000..f2fd7761
--- /dev/null
+++ b/src-migrate/services/auth.ts
@@ -0,0 +1,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;
+};