Pritup pres PHP a docker

This commit is contained in:
Martin Blazik
2026-08-16 20:09:42 +02:00
committed by lachtan obecny
parent 5b8e535be0
commit 8f5a69c86f
11 changed files with 302 additions and 2 deletions

23
app/public/index.php Normal file
View File

@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
require __DIR__ . '/../src/functions.php';
define('PUBLIC_BASE_URL', resolvePublicBaseUrl());
$name = resolveRequestedName();
if ($name === '') {
handleIndexRequest();
}
if ($name === 'list') {
handleListRequest();
}
if (str_starts_with($name, 'raw/')) {
handleRawRequest(substr($name, strlen('raw/')));
}
handleInstallRequest($name);