ptut-vhost/build/api/module/categoryController.php

27 lines
359 B
PHP

<?php
/**
* Created by PhpStorm.
* User: lucas
* Date: 01/03/18
* Time: 16:43
*/
namespace api\module;
use database\core\Repo;
class categoryController
{
public function get($args){
$idCat = 0;
extract($args);
/** @var \database\repo\category $repo */
$repo = Repo::getRepo("category");
return ["data" => $repo->getStats($idCat)];
}
}