blob: 9b772d20ab8fefbd5e98d6d5283e9f9d52ba2454 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import odooApi from '@/core/api/odooApi';
import { getAuth } from '@/core/utils/auth';
const switchAccountApi = async ({ data }) => {
const auth = getAuth();
const switchAccount = await odooApi(
'PUT',
`/api/v1/user/${auth.partner_id}/switch`,
data
);
return switchAccount;
};
export default switchAccountApi;
|