1
0

Роутинг

Мелкая правка роутинга
This commit is contained in:
2026-01-12 07:15:26 +07:00
parent b4263bfe3f
commit 35d7e0ec8b

View File

@@ -14,6 +14,12 @@ if (isset($routes[$path])) {
exit;
}
// Статические файлы из /public/ — передаём в backend
if (strpos($path, '/public/') === 0) {
require_once __DIR__ . BACKEND_PATH . '/index.php';
exit;
}
// Всё остальное — SPA
include __DIR__ . '/index.html';