Pritup pres PHP a docker
This commit is contained in:
committed by
lachtan obecny
parent
5b8e535be0
commit
8f5a69c86f
23
app/public/index.php
Normal file
23
app/public/index.php
Normal 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);
|
||||
Reference in New Issue
Block a user