Skip to content

Commit

Permalink
Fix api url getting monitors for map
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Dec 18, 2024
1 parent 0bbaedc commit 72330a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/js/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@ var ZMMap = function() {
key: 'addMonitors',
value: function addMonitors() {
const server = new Server(Servers[serverId]);
const get_monitors_promise = server.getFromApi('/monitors/Deleted:0.json');
const get_monitors_promise = server.getFromApi('/monitors/index/Deleted:0.json');
get_monitors_promise
.then((response) => {
return response.json();
})
.then((monitors) => {
console.log(monitors);
if (!monitors.monitors) return;

let cant_connected = 0;
let cant_disconnected = 0;
Expand Down

0 comments on commit 72330a5

Please sign in to comment.