meraproject/module/core/token/controller.php

19 lines
281 B
PHP
Raw Permalink Normal View History

<?
namespace controller\core\token;
use core\Token;
use ms\ms\structure\msControllerTable;
class Api extends msControllerTable {
static $class = 'core\Token';
static function check(){
echo je(['token'=>boolval( \Core::$TOKEN and ( UID || PID)), ]);
}
}