summaryrefslogtreecommitdiff
path: root/src/lib/auth/api/switchAccountProgresApi.js
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-01-15 10:02:39 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-01-15 10:02:39 +0000
commit8035f129863f0a401f529cc0cd69a2131ccaba80 (patch)
tree21e0300680a724c8a24ed815ea4e9a32ab13a895 /src/lib/auth/api/switchAccountProgresApi.js
parent7a14ed5ccdde86d0400d6aa02ac866317d4add63 (diff)
parent98236a47c3558c4b701009a275c7ae917ee8bf67 (diff)
Merged in Feature/switch-account (pull request #402)
Feature/switch account
Diffstat (limited to 'src/lib/auth/api/switchAccountProgresApi.js')
-rw-r--r--src/lib/auth/api/switchAccountProgresApi.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/auth/api/switchAccountProgresApi.js b/src/lib/auth/api/switchAccountProgresApi.js
new file mode 100644
index 00000000..6289a5dd
--- /dev/null
+++ b/src/lib/auth/api/switchAccountProgresApi.js
@@ -0,0 +1,13 @@
+import odooApi from '@/core/api/odooApi';
+import { getAuth } from '@/core/utils/auth';
+
+const switchAccountProgresApi = async () => {
+ const auth = getAuth();
+ const switchAccount = await odooApi(
+ 'GET',
+ `/api/v1/user/${auth.partnerId}/switch_progres`
+ );
+ return switchAccount;
+};
+
+export default switchAccountProgresApi;