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

25 lines
356 B
PHP

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