This commit is contained in:
2025-11-30 03:24:14 +01:00
parent 337f65205d
commit c7e355c1ea
5 changed files with 112 additions and 54 deletions

View File

@@ -3,7 +3,7 @@
// Optional: zentrale Config laden (wenn du magst)
declare(strict_types=1);
require __DIR__ . '/../config/fileload.php';
require $_SERVER['DOCUMENT_ROOT']. '/../config/fileload.php';
// Basis-Header (CORS, JSON)
header('Content-Type: application/json; charset=utf-8');
@@ -40,12 +40,12 @@ if ($path === '/') {
// Routing nach Bereich
if (str_starts_with($path, '/v1/')) {
require __DIR__ . '/router.v1.php';
require __DIR__ . '/router/router.v1.php';
exit;
}
if (str_starts_with($path, '/internal/')) {
require __DIR__ . '/router.internal.php';
require __DIR__ . '/router/router.internal.php';
exit;
}