15 lines
321 B
PHP
15 lines
321 B
PHP
<?php
|
|
|
|
use App\Kernel;
|
|
|
|
if (preg_match("/js\/data\.json$/", $_SERVER['REQUEST_URI'])) {
|
|
print file_get_contents('js/data.json');
|
|
exit;
|
|
}
|
|
|
|
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
|
|
|
|
return function (array $context) {
|
|
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
|
|
};
|