add api method getUserInfo
This commit is contained in:
1 parent
0ec5c9cc9c
commit
bf4da864b9
2 files changed
+167
-1
No files matched your search
+10
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user