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

16
backend/index.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
require_once __DIR__ . '/app/config.php';
// Игнорируем запросы к favicon.ico и другим статическим файлам
$requestUri = $_SERVER['REQUEST_URI'] ?? '';
if (preg_match('/\.(ico|png|jpg|jpeg|gif|css|js|svg|woff|woff2|ttf|eot)$/i', $requestUri)) {
http_response_code(404);
exit;
}
header('Content-Type: application/json; charset=utf-8');
$accounts = Database::select('accounts', '*');
echo json_encode([$accounts]);