First migrated version

This commit is contained in:
torsten 2026-10-03 15:56:22 +02:00
parent 12b2cd91f8
commit acb7618086
6 changed files with 268 additions and 2 deletions

17
public/index.php Normal file
View file

@ -0,0 +1,17 @@
<?php
// Einfaches Routing (Microframework / Pure PHP) für tippspiel2027
// Dies stellt sicher, dass der Code maximal lesbar und zukunftssicher bleibt.
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
if ($uri === '/' || $uri === '/index.php') {
echo "<h1>Willkommen bei Tippspiel 2027</h1>";
echo "<p>Dies ist die Nachfolgeversion des alten Tippspiels (Pure PHP Variante).</p>";
} elseif ($uri === '/api/status') {
header('Content-Type: application/json');
echo json_encode(['status' => 'ok', 'version' => '2027.1']);
} else {
http_response_code(404);
echo "404 Not Found";
}