feat : portal.html
This commit is contained in:
@@ -28,7 +28,7 @@ app.use(express.static('ui'));
|
|||||||
|
|
||||||
// Mengarahkan pengguna yang mengakses URL kosong langsung ke index.html
|
// Mengarahkan pengguna yang mengakses URL kosong langsung ke index.html
|
||||||
app.get('/', (req, res) => {
|
app.get('/', (req, res) => {
|
||||||
res.redirect('/index.html');
|
res.redirect('/portal.html');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Rute rahasia sementara untuk mengunduh database asli dari server publik Coolify
|
// Rute rahasia sementara untuk mengunduh database asli dari server publik Coolify
|
||||||
|
|||||||
@@ -177,7 +177,7 @@
|
|||||||
const json_result = await http_response.json();
|
const json_result = await http_response.json();
|
||||||
|
|
||||||
if (!http_response.ok) throw new Error(json_result.error || 'Gagal menarik data dari server.');
|
if (!http_response.ok) throw new Error(json_result.error || 'Gagal menarik data dari server.');
|
||||||
|
|
||||||
muat_data_ke_tabel_admin(json_result);
|
muat_data_ke_tabel_admin(json_result);
|
||||||
|
|
||||||
} catch (error_sistem) {
|
} catch (error_sistem) {
|
||||||
|
|||||||
Reference in New Issue
Block a user