mirror of
https://github.com/pi-hole/web.git
synced 2026-04-28 12:44:07 +01:00
Added new API call: overTimeData10mins
This commit is contained in:
6
api.php
6
api.php
@@ -21,6 +21,10 @@
|
||||
$data = array_merge($data, getOverTimeData());
|
||||
}
|
||||
|
||||
if (isset($_GET['overTimeData10mins'])) {
|
||||
$data = array_merge($data, getOverTimeData10mins());
|
||||
}
|
||||
|
||||
if (isset($_GET['topItems'])) {
|
||||
$data = array_merge($data, getTopItems());
|
||||
}
|
||||
@@ -58,7 +62,7 @@
|
||||
}
|
||||
return $sanArray;
|
||||
}
|
||||
|
||||
|
||||
$data = filterArray($data);
|
||||
echo json_encode($data);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user