ptut-vhost/build/api/module/department/statsController.php

25 lines
354 B
PHP

<?php
/**
* Created by PhpStorm.
* User: lucas
* Date: 08/03/18
* Time: 17:36
*/
namespace api\module\department;
use database\core\Repo;
use database\repo\department;
class statsController
{
public static function get($args){
/** @var department $repo */
$repo = Repo::getRepo("department");
return ["data" => $repo->getStats()];
}
}