baleen/public/index.php

9 lines
324 B
PHP
Raw Normal View History

2024-08-30 12:28:30 +00:00
<?php declare(strict_types=1);
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.
}
require_once __DIR__ . "/../src/app.php";