...
 
Commits (2)
......@@ -18,8 +18,9 @@
"php": ">=5.6.0",
"ext-curl": "*",
"art-of-wifi/unifi-api-client": "^1.1",
"vlucas/phpdotenv": "^3.4",
"composer/composer": "^1.9"
"composer/composer": "^1.9",
"ocramius/package-versions": "^1.4",
"vlucas/phpdotenv": "^3.4"
},
"require-dev": {
"filp/whoops": "^2.5",
......
......@@ -23,10 +23,6 @@ date_default_timezone_set(getenv('TIMEZONE'));
// Initiate the MeshviewerGenerator
$meshGenerator = new MeshviewerGenerator();
// Test
#echo "<pre>";
#$meshGenerator->getGateway("18e8295ccf02");
// set Content Type to application/json
header('Content-Type: application/json');
......
......@@ -416,6 +416,7 @@ class MeshviewerGenerator{
$return['json']['meshviewer'] = $this->writeStatus['meshviewer'];
}
}
$return['package_version'] = \PackageVersions\Versions::getVersion('ispserverfarm/unifi-meshviewer-generator');
return $return;
}
......