Add version/type parameters to API (will be used in the future to decide what backend is powering the frontend) (#414)

This commit is contained in:
DL6ER
2017-02-27 23:12:39 +01:00
committed by GitHub
parent d104539708
commit e6d0dd4839

View File

@@ -19,6 +19,14 @@
// Non-Auth
if (isset($_GET['type'])) {
$data["type"] = "PHP";
}
if (isset($_GET['version'])) {
$data["version"] = 2;
}
if (isset($_GET['summaryRaw'])) {
$data = array_merge($data, getSummaryData());
}