Update: 2026-05-15 15:44:31

This commit is contained in:
Hamza-Ayed
2026-05-15 15:44:31 +03:00
parent 9ecc03adb1
commit ee2ea3a111
3 changed files with 3 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ error_log("Router: Resolved route '{$route}'");
// Route map: route => [allowed_method, module_file]
$routes = [
'verify' => ['GET', 'invoices/verify_public.php'],
'v1/auth/login' => ['POST', 'auth/login.php'],
'v1/auth/refresh' => ['POST', 'auth/refresh.php'],
'v1/auth/logout' => ['POST', 'auth/logout.php'],

View File

@@ -3039,7 +3039,7 @@
getQrSrc(inv) {
if (!inv) return '';
if (inv.jofotara?.qr_image_uri) return inv.jofotara.qr_image_uri;
const verifyUrl = `https://musadaq.intaleqapp.com/index.php?route=v1/verify&id=${inv.id}`;
const verifyUrl = 'https://musadaq.intaleqapp.com/index.php?route=verify&id=' + inv.id;
const qr = new QRious({ value: verifyUrl, size: 300, level: 'H' });
return qr.toDataURL();
},