mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 19:29:20 +01:00
Add type / version
This commit is contained in:
@@ -21,10 +21,12 @@ header('Content-type: application/json');
|
||||
|
||||
$data = [];
|
||||
|
||||
if (isset($_GET['type'])) {
|
||||
$data["type"] = "FTL";
|
||||
}
|
||||
|
||||
if (isset($_GET['version'])) {
|
||||
$version = array();
|
||||
$version["version"] = "FTL";
|
||||
$data = array_merge($data, $version);
|
||||
$data["version"] = 2;
|
||||
}
|
||||
|
||||
if (isset($_GET['summary']) || isset($_GET['summaryRaw']) || !count($_GET))
|
||||
|
||||
Reference in New Issue
Block a user