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

25 lines
356 B
PHP
Raw Permalink Normal View History

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