Premier commit

This commit is contained in:
2024-09-09 10:22:45 +02:00
commit bcc2604080
74 changed files with 25819 additions and 0 deletions

22
web/index.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
use Tracy\Debugger;
use Piko\ModularApplication;
require(__DIR__ . '/../vendor/autoload.php');
foreach (require __DIR__ . '/../env.php' as $key => $val) {
putenv("{$key}={$val}");
}
if (getenv('APP_DEBUG')) {
Debugger::enable(Debugger::DEVELOPMENT);
}
$config = require __DIR__ . '/../config/app.php';
$app = new ModularApplication($config);
$app->pipe(new \app\lib\AuthMiddleware($app));
$app->pipe(new \app\lib\CorsMiddleware());
$app->run();