18 lines
471 B
PHP
Executable File
18 lines
471 B
PHP
Executable File
<?php
|
|
declare(strict_types=1);
|
|
|
|
require_once __DIR__ . '/../config/fileload.php';
|
|
|
|
// 1. Composer Autoload (Falls nicht schon im Webserver-Setup enthalten)
|
|
$composerAutoload = __DIR__ . '/../composer/vendor/autoload.php';
|
|
if (is_file($composerAutoload)) {
|
|
require_once $composerAutoload;
|
|
}
|
|
|
|
// 2. Lade die Service-Klasse (API-Kernel)
|
|
require_once __DIR__ . '/../src/ApiKernel.php';
|
|
|
|
// 3. Erstelle eine Instanz und führe sie aus
|
|
$api = new ApiKernel();
|
|
$api->run();
|