summaryrefslogtreecommitdiff
path: root/src/lib/auth/api/switchAccountProgresApi.js
blob: 6289a5dd39bc3843413921cd10eafcda63e55619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;