api
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user