Migrasi ke Laravel dan penambahan dokumentasi

This commit is contained in:
GuavaPopper
2026-05-02 14:03:04 +07:00
parent 7759b83638
commit 6f108afdba
83 changed files with 12004 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
header('Content-Type: application/json');
require_once 'config.php';
try {
$stmt = $pdo->query("SELECT * FROM rumah_miskin ORDER BY created_at DESC");
$data = $stmt->fetchAll();
echo json_encode($data);
} catch (PDOException $e) {
http_response_code(500);
echo json_encode(['success' => false, 'message' => $e->getMessage()]);
}