6 lines
250 B
PHP
6 lines
250 B
PHP
<?php
|
|
// PHP development server only: php -S 127.0.0.1:8080 -t public public/router.php
|
|
$path=parse_url($_SERVER['REQUEST_URI'],PHP_URL_PATH);
|
|
if(str_starts_with($path,'/assets/') && is_file(__DIR__.$path))return false;
|
|
require __DIR__.'/index.php';
|