meraproject/module/ms/portal/controller.php
keboss-m 5c21d25d45 Initial commit: Merakomis portal, Docker stack and user-reader API.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 11:04:05 +03:00

29 lines
521 B
PHP

<?
namespace controller\ms\portal;
use ms\ms\structure\msControllerTable;
use ms\Portal;
class Api extends msControllerTable {
static $class = 'ms\Portal';
static function getMyList(){
$res = [];
if(IF_AUTH){
$r = Portal::select([
\Query::WHERE => new \Where(\Where::_operator(Portal::$ACCOUNT,'=',UID))
]);
while($l = \DB::fetch($r)){
$res[] = Portal::format($l);
}
}
echo je($res);
}
}