baleen/index.php
2024-08-30 13:28:30 +01:00

9 lines
318 B
PHP

<?php declare(strict_types=1);
require_once __DIR__ . "/vendor/autoload.php";
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.
}
require_once __DIR__ . "/src/app.php";