feat(feasibility): update executive specs with 5 apps ecosystem, gamification savings wallet, and static assets router

This commit is contained in:
Hamza-Ayed
2026-09-18 17:28:10 +03:00
parent d56cbfc45b
commit c263bdaddd
2 changed files with 281 additions and 45 deletions
+22 -1
View File
@@ -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)) {