baleen/public/index.php

9 lines
324 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";