commit
This commit is contained in:
15
public/api.php
Normal file
15
public/api.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?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();
|
||||
Reference in New Issue
Block a user