feat(feasibility): update executive specs with 5 apps ecosystem, gamification savings wallet, and static assets router
This commit is contained in:
@@ -9,7 +9,28 @@ declare(strict_types=1);
|
||||
|
||||
$uri = parse_url($_SERVER['REQUEST_URI'] ?? '/', PHP_URL_PATH);
|
||||
|
||||
// 1. If requesting the feasibility presentation or homepage in browser
|
||||
// 1. Static asset serving (e.g., logo, css, js)
|
||||
$filePath = __DIR__ . $uri;
|
||||
if ($uri !== '/' && file_exists($filePath) && !is_dir($filePath)) {
|
||||
$extension = strtolower(pathinfo($filePath, PATHINFO_EXTENSION));
|
||||
$mimeTypes = [
|
||||
'png' => 'image/png',
|
||||
'jpg' => 'image/jpeg',
|
||||
'jpeg' => 'image/jpeg',
|
||||
'svg' => 'image/svg+xml',
|
||||
'ico' => 'image/x-icon',
|
||||
'css' => 'text/css',
|
||||
'js' => 'application/javascript',
|
||||
'html' => 'text/html; charset=UTF-8',
|
||||
];
|
||||
if (isset($mimeTypes[$extension])) {
|
||||
header('Content-Type: ' . $mimeTypes[$extension]);
|
||||
readfile($filePath);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
// 2. If requesting the feasibility presentation or homepage in browser
|
||||
if ($uri === '/' || $uri === '/feasibility' || $uri === '/docs') {
|
||||
$htmlDoc = __DIR__ . '/docs/uruk_project_feasibility_and_architecture.html';
|
||||
if (file_exists($htmlDoc)) {
|
||||
|
||||
Reference in New Issue
Block a user