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

25 lines
354 B
PHP
Raw Permalink Normal View History

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