From 5aa3c6df5b446905ef1cd56cf36925552ce8c6d1 Mon Sep 17 00:00:00 2001 From: Iam54r1n4 Date: Fri, 7 Feb 2025 22:00:21 +0000 Subject: [PATCH] Trying to fix getting services status in index.html --- core/scripts/webpanel/templates/index.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/scripts/webpanel/templates/index.html b/core/scripts/webpanel/templates/index.html index b62de9a..21065aa 100644 --- a/core/scripts/webpanel/templates/index.html +++ b/core/scripts/webpanel/templates/index.html @@ -90,7 +90,7 @@
-
+

--

Singbox

@@ -100,7 +100,7 @@
-
+

--

@@ -133,13 +133,13 @@ function updateServiceStatuses() { // Add services api in fetch - fetch('') + fetch('{{ url_for("server_services_status_api") }}') .then(response => response.json()) .then(data => { - updateServiceBox('hysteria2', data.hysteria2); - updateServiceBox('telegrambot', data.telegrambot); - updateServiceBox('singbox', data.singbox); - updateServiceBox('normalsub', data.normalsub); + updateServiceBox('hysteria2', data.hysteria_server); + updateServiceBox('telegrambot', data.hysteria_telegram); + updateServiceBox('singbox', data.hysteria_singbox); + updateServiceBox('normalsub', data.hysetria_normal_sub); }) .catch(error => console.error('Error fetching service statuses:', error)); } @@ -167,4 +167,4 @@ setInterval(updateServerInfo, 5000); -{% endblock %} +{% endblock %} \ No newline at end of file