summaryrefslogtreecommitdiff
path: root/src-migrate/services
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-07-10 16:23:35 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-07-10 16:23:35 +0700
commita8dcd4d3d14d9caf64063f3ec586125238727794 (patch)
tree943ad4a0bcd25153ace381075f95ab0aec4a2edf /src-migrate/services
parent2e3c726bc8217f3960cfecec44b81303b03de72b (diff)
parentffaf9994e8c47c5a32a2091b7d0949302528ee2e (diff)
Merge branch 'feature/all-promotion' into development
Diffstat (limited to 'src-migrate/services')
-rw-r--r--src-migrate/services/voucher.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src-migrate/services/voucher.ts b/src-migrate/services/voucher.ts
new file mode 100644
index 00000000..447b448e
--- /dev/null
+++ b/src-migrate/services/voucher.ts
@@ -0,0 +1,8 @@
+import odooApi from '~/libs/odooApi';
+import { IVoucher } from '~/types/voucher';
+
+export const getVoucher = async (): Promise<IVoucher[]> => {
+ const url = `/api/v1/voucher`;
+
+ return await odooApi('GET', url);
+};