add api method getUserInfo

This commit is contained in:
rsgrinko committed 2022-01-12 11:26:34 +03:00
1 parent 0ec5c9cc9c
commit bf4da864b9
2 files changed
+167 -1

No files matched your search

+10 -1
View File
@@ -1,7 +1,16 @@
<?php
/**
* Класс для предоставления API функционала
*/
class CAPI {
public static function test(){
public static function test() {
return ['status' => 'ok', 'message' => 'test was completed :)'];
}
public static function getUserInfo() {
global $USER;
unset($USER['pass']);
return $USER;
}
}