Роутинг
Мелкая правка роутинга
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user