1
0

Инициализация проекта

Загрузка проекта на GIT
This commit is contained in:
2026-01-11 15:01:35 +07:00
commit 301e179160
28 changed files with 7769 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
// Функция роутинга API
function handleRouting($routes = []) {
$request = $_SERVER['REQUEST_URI'];
$path = parse_url($request, PHP_URL_PATH);
if (isset($routes[$path])) {
$file_path = $routes[$path];
global $_POST, $_FILES, $_SERVER, $_GET;
include $file_path;
exit;
}
}