добавлены параметры устройств пользователя

This commit is contained in:
rsgrinko committed 2022-01-12 12:36:31 +03:00
1 parent e795fe3daf
commit 7b2c0c2f70
1 file changed
+3
+3
View File
@@ -13,6 +13,9 @@ class CAPI {
unset($USER['password']);
$result = $USER;
$result['devices'] = getUserDevices($USER['id']);
foreach($result['devices'] as $key => $value) {
$result['devices'][$key]['config'] = CIoT::getBoardConfig($value['id']);
}
return $result;
}
}