Coba Commit

This commit is contained in:
naukyy
2026-06-12 22:46:13 +07:00
parent f167f233b7
commit 66bb4c4c7c
126 changed files with 1613 additions and 866 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
<?php
<?php
/**
* jalan.php
* Tanggung Jawab: Menangani operasi CRUD untuk entitas Jalan (LineString).
*/
require_once '../config/db.php';
require_once '../core_config/database.php';
require_once '../utils/response_helper.php';
$pdo = Database::getConnection();
+2 -2
View File
@@ -1,10 +1,10 @@
<?php
<?php
/**
* kavling.php
* Tanggung Jawab: Menangani operasi CRUD untuk entitas Kavling (Polygon).
*/
require_once '../config/db.php';
require_once '../core_config/database.php';
require_once '../utils/response_helper.php';
$pdo = Database::getConnection();
+2 -2
View File
@@ -1,10 +1,10 @@
<?php
<?php
/**
* rumah_ibadah.php
* Tanggung Jawab: Operasi CRUD Rumah Ibadah + Endpoint analisis jangkauan Haversine.
*/
require_once '../config/db.php';
require_once '../core_config/database.php';
require_once '../utils/response_helper.php';
require_once '../utils/geo_helper.php';
+2 -2
View File
@@ -1,5 +1,5 @@
<?php
require_once '../config/db.php';
<?php
require_once '../core_config/database.php';
require_once '../utils/response_helper.php';
$pdo = Database::getConnection();
+2 -2
View File
@@ -1,10 +1,10 @@
<?php
<?php
/**
* warga_miskin.php
* Tanggung Jawab: Operasi CRUD untuk Warga Miskin.
*/
require_once '../config/db.php';
require_once '../core_config/database.php';
require_once '../utils/response_helper.php';
$pdo = Database::getConnection();
+9 -1
View File
@@ -1,4 +1,12 @@
export const BASE_URL = '';
const getBaseUrl = () => {
const segments = window.location.pathname.split('/');
const targetIndex = segments.findIndex(seg => ['01', '02', '03', 'versi'].includes(seg));
if (targetIndex !== -1) {
return segments.slice(0, targetIndex).join('/');
}
return '';
};
export const BASE_URL = getBaseUrl();
const createService = (endpoint) => ({
getAll: async () => {