This commit is contained in:
2026-04-19 22:12:52 +02:00
parent eacf0ab7fd
commit 5e8fdf8068
12 changed files with 0 additions and 271 deletions

View File

@@ -1,27 +0,0 @@
<?php
use Controllers\HomeController;
use src\Database;
session_start();
spl_autoload_register(function ($class) {
$file = __DIR__ . '/../' . str_replace('\\', '/', $class) . '.php';
if (file_exists($file)) {
require_once $file;
}
});
require_once __DIR__ . '/../src/Controllers/HomeController.php';
require_once __DIR__ . '/../src/Database.php';
$path = $_SERVER['REQUEST_URI'] ?? '/';
if ($path === '/') {
$db = Database::getInstance();
$controller = new HomeController($db);
$controller->index();
}