mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
CleanUp
This commit is contained in:
1 parent
dcc7592c4f
commit
b0650e7fbe
1 file changed
-19
@@ -1,19 +0,0 @@
|
|||||||
<?php
|
|
||||||
class UsersApi extends ApiController{
|
|
||||||
public function default(){
|
|
||||||
//$this->requireAuth();
|
|
||||||
$response = null;
|
|
||||||
|
|
||||||
$users = UserManager::getUsers(["user_id", "username", "at_home"]);
|
|
||||||
|
|
||||||
foreach ($users as $key => $user) {
|
|
||||||
$response[] = [
|
|
||||||
"userName" => $users['username'],
|
|
||||||
"homeStatus" => ($users['at_home']) ? true : false,
|
|
||||||
"avatarUrl" => getAvatarUrl($value['user_id']),
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->response($response);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user