Files
emailtemplate.it/public/api.php
2026-02-09 01:38:39 +01:00

18 lines
462 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__ . '/../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();