First commit / commit pertama

This commit is contained in:
Mr.Haruna
2026-06-13 11:24:58 +07:00
commit 522c4f7200
166 changed files with 13326 additions and 0 deletions
@@ -0,0 +1,18 @@
import { CONFIG } from '../config.js';
export const wargaMiskinService = {
getAll: async () => {
const res = await fetch(`${CONFIG.BASE_URL}/warga_miskin.php`);
return await res.json();
},
save: async (data) => {
const res = await fetch(`${CONFIG.BASE_URL}/warga_miskin.php`, {
method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data)
});
return await res.json();
},
delete: async (id) => {
const res = await fetch(`${CONFIG.BASE_URL}/warga_miskin.php?id=${id}`, { method: 'DELETE' });
return await res.json();
}
};