diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-22 08:35:08 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-22 08:35:08 +0700 |
| commit | 50f5a2d8897020acc11f2a20469ffdd42ca7c31b (patch) | |
| tree | d47f95de1d9710ca8b4d173abd5edc2797704a87 /src/lib/address/api | |
| parent | 82954ee3cfa38f21f677b9aa2c1c6c3c88004050 (diff) | |
| parent | 036e72780ddb7a510795b329919ff9dd957af6d7 (diff) | |
Merge branch 'refactor' of bitbucket.org:altafixco/next-indoteknik into refactor
Diffstat (limited to 'src/lib/address/api')
| -rw-r--r-- | src/lib/address/api/addressesApi.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/address/api/addressesApi.js b/src/lib/address/api/addressesApi.js new file mode 100644 index 00000000..1edfc077 --- /dev/null +++ b/src/lib/address/api/addressesApi.js @@ -0,0 +1,10 @@ +import odooApi from "@/core/api/odooApi" +import { getAuth } from "@/core/utils/auth" + +const addressesApi = async () => { + const auth = getAuth() + const dataAddresses = await odooApi('GET', `/api/v1/user/${auth.id}/address`) + return dataAddresses +} + +export default addressesApi
\ No newline at end of file |
