fds.fjla.uk/js/status-checker.js
2022-09-09 20:09:09 +01:00

8 lines
173 B
JavaScript

async function getStates(url) {
let states = await fetch(url);
let stateJson = await states.text();
console.log(stateJson)
}
getStates('127.0.0.1:5000/servicestate')