Trying to fix getting services status in index.html
This commit is contained in:
@ -133,13 +133,13 @@
|
|||||||
|
|
||||||
function updateServiceStatuses() {
|
function updateServiceStatuses() {
|
||||||
// Add services api in fetch
|
// Add services api in fetch
|
||||||
fetch('')
|
fetch('{{ url_for("server_services_status_api") }}')
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
updateServiceBox('hysteria2', data.hysteria2);
|
updateServiceBox('hysteria2', data.hysteria_server);
|
||||||
updateServiceBox('telegrambot', data.telegrambot);
|
updateServiceBox('telegrambot', data.hysteria_telegram);
|
||||||
updateServiceBox('singbox', data.singbox);
|
updateServiceBox('singbox', data.hysteria_singbox);
|
||||||
updateServiceBox('normalsub', data.normalsub);
|
updateServiceBox('normalsub', data.hysetria_normal_sub);
|
||||||
})
|
})
|
||||||
.catch(error => console.error('Error fetching service statuses:', error));
|
.catch(error => console.error('Error fetching service statuses:', error));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user