--
@@ -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