diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-07-17 16:58:42 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-07-17 16:58:42 +0700 |
| commit | e76d537689d08fb4c15d482ffa996b8012dbc941 (patch) | |
| tree | 17267b16ba50c89d55c29ea8c962312c05bdcb70 /src/pages/api/user-activity.js | |
| parent | 581334e8d077916c3a9ab87fd5b6e6b5126aba12 (diff) | |
| parent | e39d3b0082e83ad08044918f0b6d8e977223100d (diff) | |
Merge branch 'Feature/voucher' into Feature/promotion_programvaoucher
# Conflicts:
# src/lib/cart/components/Cart.jsx
# src/lib/checkout/components/Checkout.jsx
# src/lib/product/components/Product/Product.jsx
# src/lib/product/components/Product/ProductDesktop.jsx
# src/lib/product/components/Product/ProductMobile.jsx
Diffstat (limited to 'src/pages/api/user-activity.js')
| -rw-r--r-- | src/pages/api/user-activity.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/pages/api/user-activity.js b/src/pages/api/user-activity.js new file mode 100644 index 00000000..04daa9a6 --- /dev/null +++ b/src/pages/api/user-activity.js @@ -0,0 +1,16 @@ +import odooApi from "@/core/api/odooApi"; + +export default async function handler(req, res) { + res.setHeader('Cache-Control', 'no-cache'); + const data = { + 'page_title' : req.query.page_title, + 'url' : req.query.url, + 'ip_address' : req.query.ip, + } + + const sendData = await odooApi('POST', '/api/v1/activity', data) + + // Kirim respons ke klien + res.status(200).json({ message: 'OK' }); + } +
\ No newline at end of file |
