DB Entity: Inheriting/Extending

This commit is contained in:
Roman Hergenreder
2022-11-27 12:33:27 +01:00
parent 3b2b5984d6
commit 26a22f5299
20 changed files with 308 additions and 157 deletions

View File

@@ -4,13 +4,14 @@ namespace Core\Objects\Router;
use Core\API\Request;
use Core\Elements\TemplateDocument;
use Core\Objects\DatabaseEntity\Route;
use ReflectionClass;
use ReflectionException;
class ApiRoute extends AbstractRoute {
class ApiRoute extends Route {
public function __construct() {
parent::__construct("/api/{endpoint:?}/{method:?}", false);
parent::__construct("API", "/api/{endpoint:?}/{method:?}", false);
}
private static function checkClass(string $className): bool {