First migrated version
This commit is contained in:
parent
12b2cd91f8
commit
acb7618086
6 changed files with 268 additions and 2 deletions
17
public/index.php
Normal file
17
public/index.php
Normal 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";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue