Update: Call dedicated API endpoint /api/check.php for voucher checking

This commit is contained in:
dyzulk
2026-01-12 10:10:33 +07:00
parent 77a66a643a
commit 77ec4f68c4

View File

@@ -200,7 +200,7 @@ function checkVoucher(forceCode = null) {
const mikhmonUrl = brandConfig.mikhmonUrl;
const session = brandConfig.mikhmonSession;
const url = `${mikhmonUrl}/status/index.php?session=${session}&nama=${code}&json=true`;
const url = `${mikhmonUrl}/api/check.php?session=${session}&nama=${code}`;
fetch(url)
.then(response => response.json())