fix: index.php
This commit is contained in:
parent
3f6d32b995
commit
9aa49c9c2c
@ -2,8 +2,8 @@
|
||||
|
||||
use App\Kernel;
|
||||
|
||||
if (preg_match("/js\/data\.json$/", $_SERVER['REQUEST_URI'])) {
|
||||
print file_get_contents('js/data.json');
|
||||
if (file_exists(__DIR__.$_SERVER['REQUEST_URI']) && is_readable(__DIR__.$_SERVER['REQUEST_URI']) && is_file(__DIR__.$_SERVER['REQUEST_URI'])) {
|
||||
print file_get_contents(__DIR__.$_SERVER['REQUEST_URI']);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user