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