2024-08-30 12:28:30 +00:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
|
2024-10-22 12:18:40 +00:00
|
|
|
require_once __DIR__ . "/../vendor/autoload.php";
|
2024-08-30 12:28:30 +00:00
|
|
|
|
|
|
|
if (php_sapi_name() === "cli-server" && preg_match('/\.(?:png|jpg|jpeg|gif|css|ico|js|mjs|css\.map|webp)$/', $_SERVER["REQUEST_URI"])) {
|
|
|
|
return false; // serve the requested resource as-is.
|
|
|
|
}
|
|
|
|
|
2024-10-22 12:18:40 +00:00
|
|
|
require_once __DIR__ . "/../src/app.php";
|