FPDAM2023/PHP/Controllers/FPDAM2023.Controllers.Enrollments.php

32 lines
591 B
PHP
Raw Permalink Normal View History

<?php
namespace FPDAM2023\Controllers;
class Enrollments extends \AnP\Controller{
public function __construct($anp){
parent::__construct($anp, $this);
$this->entity = "Enrollments";
$this->class = get_class($this);
}
public function list(){
try{
$this->execute()->list();
}catch(\Exception $exception){
$this->set_traces($exception);
};
}
public function test(){
$this->json_response(["JOJOJO"]);
}
};