Fix Coolify URLs and database config

This commit is contained in:
2026-06-11 01:50:43 +07:00
parent 77caccc6a0
commit d7c208c404
4 changed files with 15 additions and 11 deletions
+3 -3
View File
@@ -600,7 +600,7 @@ $idIbadah = $_SESSION['id_ibadah'] ?? null;
// ════════════════════════════════════════════════════════════════
// CONFIG
// ════════════════════════════════════════════════════════════════
const API = 'http://localhost/web_gis/01/api.php';
const API = '/api.php';
const USER_ROLE = '<?= $role ?>';
const USER_ID_IBADAH = <?= $idIbadah ?? 'null' ?>;
@@ -1341,8 +1341,8 @@ function shakeEl(id) {
// ════════════════════════════════════════════════════════════════
// MODAL DETAIL — buka dari popup atau sidebar
// ════════════════════════════════════════════════════════════════
const UPLOAD_URL = 'http://localhost/web_gis/01/upload.php';
const FOTO_BASE = 'http://localhost/web_gis/01/uploads/';
const UPLOAD_URL = '/upload.php';
const FOTO_BASE = '/uploads/';
let detailMiskinId = null; // ID KK yang sedang dibuka di modal detail