mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
Fix api url getting monitors for map
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user